r20504 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 27 18:48:50 UTC 2015


Author: jghali
Date: Tue Oct 27 18:48:50 2015
New Revision: 20504

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20504
Log:
#12091: leave text cursor at search position in Story Editor when closing search dialog (additional fix for Linux)

Modified:
    branches/Version14x/Scribus/scribus/storyeditor.cpp

Modified: branches/Version14x/Scribus/scribus/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20504&path=/branches/Version14x/Scribus/scribus/storyeditor.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/storyeditor.cpp	(original)
+++ branches/Version14x/Scribus/scribus/storyeditor.cpp	Tue Oct 27 18:48:50 2015
@@ -2982,11 +2982,13 @@
 	SearchReplace* dia = new SearchReplace(this, currDoc, currItem, false);
 	dia->exec();
 	int pos = dia->firstMatchCursorPosition();
-	if (pos>=0)
+	if (pos >= 0)
 	{
 		QTextCursor tCursor = Editor->textCursor();
 		tCursor.setPosition(pos);
 		Editor->setTextCursor(tCursor);
+		Editor->SelParaStart = pos;
+		Editor->SelParaEnd = pos;
 	}
 	delete dia;
 	qApp->processEvents();




More information about the scribus-commit mailing list