r16075 by pierremarc - StoryText::startOfParagraph was called with a pos as argument rather than a paragraph index

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 6 16:50:28 CET 2010


Author: pierremarc
Date: Mon Dec  6 15:50:27 2010
New Revision: 16075

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16075
Log:
StoryText::startOfParagraph was called with a pos as argument rather than a paragraph index

Modified:
    branches/ScribusOIF/scribus/ui/storyeditor.cpp

Modified: branches/ScribusOIF/scribus/ui/storyeditor.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16075&path=/branches/ScribusOIF/scribus/ui/storyeditor.cpp
==============================================================================
--- branches/ScribusOIF/scribus/ui/storyeditor.cpp (original)
+++ branches/ScribusOIF/scribus/ui/storyeditor.cpp Mon Dec  6 15:50:27 2010
@@ -126,7 +126,7 @@
 	QPoint viewPos   = editor->viewport()->mapFromGlobal(globalPos);
 	int p = editor->cursorForPosition(QPoint(2, viewPos.y())).position();
 	CurrentPar = editor->StyledText.nrOfParagraph(p);
-	int pos = editor->StyledText.startOfParagraph(p);
+	int pos = editor->StyledText.startOfParagraph(CurrentPar);
 
 	ParaStyleComboBox* paraStyleCombo = new ParaStyleComboBox(this);
 	paraStyleCombo->setDoc(editor->doc);




More information about the scribus-commit mailing list