r16449 by craig - #9838: Apply patch from the bug.. fixes crash

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 17 09:49:56 CET 2011


Author: craig
Date: Thu Mar 17 08:49:55 2011
New Revision: 16449

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16449
Log:
#9838: Apply patch from the bug.. fixes crash

Modified:
    branches/Version135/Scribus/scribus/pageitem.cpp
    branches/Version135/Scribus/scribus/pageitem_textframe.cpp

Modified: branches/Version135/Scribus/scribus/pageitem.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16449&path=/branches/Version135/Scribus/scribus/pageitem.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/pageitem.cpp (original)
+++ branches/Version135/Scribus/scribus/pageitem.cpp Thu Mar 17 08:49:55 2011
@@ -3941,7 +3941,7 @@
 			HasSel = true;
 		}
 		//is SELECTION
-		iT.insert(0, itemText, true);
+		iT.insert(0, itemText, HasSel);
 		if (LenOldSel > 0) //restoring old selection if undoItem was PARAPGRAPH
 		{
 			itemText.select(StartOldSel, LenOldSel);

Modified: branches/Version135/Scribus/scribus/pageitem_textframe.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16449&path=/branches/Version135/Scribus/scribus/pageitem_textframe.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/pageitem_textframe.cpp (original)
+++ branches/Version135/Scribus/scribus/pageitem_textframe.cpp Thu Mar 17 08:49:55 2011
@@ -3353,7 +3353,7 @@
 		LenSel = itemText.endOfParagraph(itemText.nrOfParagraph(CPos)) - StartSel;
 	}
 	itemText.select(StartSel, LenSel);
-	qDebug() << "ExpandParSel" << StartSel << LenSel;
+	HasSel = true;
 }
 
 void PageItem_TextFrame::deselectAll()




More information about the scribus-commit mailing list