r13787 by jghali - #8227: traceText() function don't works with createText()
scribus-commit
scribus-commit at lists.scribus.net
Wed Jul 22 22:50:23 CEST 2009
Revision: 13787
Author: jghali
Date: 2009-07-22T20:49:08.049503Z
Commit message: #8227: traceText() function don't works with createText()
Changeset:
M /branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
Diffs:
Index: scribus/plugins/scriptplugin/cmdtext.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdtext.cpp (revision 13786)
+++ scribus/plugins/scriptplugin/cmdtext.cpp (revision 13787)
@@ -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