r13788 by jghali - #8227: traceText() function don't works with createText()

scribus-commit scribus-commit at lists.scribus.net
Wed Jul 22 22:50:37 CEST 2009


Revision: 13788
Author: jghali
Date: 2009-07-22T20:49:29.894002Z
Commit message: #8227: traceText() function don't works with createText()

Changeset: 
M  /trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmdtext.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdtext.cpp	(revision 13787)
+++ scribus/plugins/scriptplugin/cmdtext.cpp	(revision 13788)
@@ -268,6 +268,7 @@
 		ScCore->primaryMainWindow()->doc->FrameItems.at(a)->ItemNr = a;
 	}
 	currItem->itemText.insertChars(0, Daten);
+	currItem->invalidateLayout();
 	currItem->Dirty = false;
 //	Py_INCREF(Py_None);
 //	return Py_None;
@@ -927,6 +928,8 @@
 		PyErr_SetString(WrongFrameTypeError, QObject::tr("Cannot convert a non-text frame to outlines.","python error").toLocal8Bit().constData());
 		return NULL;
 	}
+	if (item->invalid)
+		item->layout();
 	ScCore->primaryMainWindow()->view->Deselect(true);
 	ScCore->primaryMainWindow()->view->SelectItemNr(item->ItemNr);
 	ScCore->primaryMainWindow()->view->TextToPath();




More information about the scribus-commit mailing list