r20503 by jghali -

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


Author: jghali
Date: Tue Oct 27 18:48:21 2015
New Revision: 20503

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

Modified:
    trunk/Scribus/scribus/ui/storyeditor.cpp

Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20503&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp	(original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp	Tue Oct 27 18:48:21 2015
@@ -3008,11 +3008,13 @@
 	SearchReplace* dia = new SearchReplace(this, m_doc, m_item, 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