r18837 by jghali - #12085: Story Editor Subscript/Superscript preview does not correspond to the Text Frame

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 25 03:12:41 UTC 2014


Author: jghali
Date: Tue Feb 25 03:12:40 2014
New Revision: 18837

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18837
Log:
#12085: Story Editor Subscript/Superscript preview does not correspond to the Text Frame

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

Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18837&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp (original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp Tue Feb 25 03:12:40 2014
@@ -924,7 +924,7 @@
 {
 	QTextCursor tCursor = textCursor();
 	setEffects(tCursor, effects);
-	//setTextCursor(tCursor);
+	setTextCursor(tCursor);
 }
 
 void SEditor::setEffects(QTextCursor& tCursor, int effects)
@@ -2093,9 +2093,10 @@
 	m_doc=doc;
 	m_textChanged=false;
 	AlignTools->paraStyleCombo->setDoc(m_doc);
+	FillTools->setCurrentDocument(m_doc);
 	StrokeTools->setCurrentDocument(m_doc);
-	FillTools->setCurrentDocument(m_doc);
 	Editor->setCurrentDocument(m_doc);
+	StyleTools->SetStyle(0);
 	m_item = item;
 	if (m_item != NULL)
 	{




More information about the scribus-commit mailing list