r19896 by jghali - some cosmetic changes

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 2 22:39:46 UTC 2015


Author: jghali
Date: Mon Mar  2 22:39:46 2015
New Revision: 19896

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19896
Log:
some cosmetic changes

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

Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19896&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp (original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp Mon Mar  2 22:39:46 2015
@@ -500,15 +500,16 @@
 
 void SEditor::focusOutEvent(QFocusEvent *e)
 {
-	if (textCursor().hasSelection())
-	{
-		SelParaStart = textCursor().selectionStart();
-		SelParaEnd = textCursor().selectionEnd();
+	QTextCursor tc(textCursor());
+	if (tc.hasSelection())
+	{
+		SelParaStart = tc.selectionStart();
+		SelParaEnd = tc.selectionEnd();
 		StoredSel = true;
 	}
 	else
 	{
-		SelParaStart = textCursor().position();
+		SelParaStart = tc.position();
 		StoredSel = false;
 	}
 	QTextEdit::focusOutEvent(e);
@@ -2247,7 +2248,7 @@
 					EditorBar->doRepaint();
 					updateProps(0, 0);
 					connectSignals();
-					}
+				}
 			}
 		}
 	}




More information about the scribus-commit mailing list