[Scribus] patch for bug 6160
Joachim Neu
joachim_neu
Sat Dec 8 01:32:25 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everybody,
Bug 6160 (invalid return values from the python scripter api function
textOverflows()) seems to be fixed with the following patch:
Index: Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
===================================================================
- --- Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (Revision 11200)
+++ Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (Arbeitskopie)
@@ -842,6 +842,9 @@
// number of overrunning letters
return PyInt_FromLong(static_cast<long>(chars - maxchars));
*/
+ // refresh overflow information
+ item->invalidateLayout();
+ item->layout();
return PyInt_FromLong(static_cast<long>(item->frameOverflows()));
}
Thanks for the great job you're doing!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHWeYZ7awBpSuN1JIRApUQAJ0WVw20kJtc2BMy1CD2J+iXLDORNwCeN700
n6h1jZShJA1aRVFrdH20uho=
=76B1
-----END PGP SIGNATURE-----
-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname : joachim_neu.vcf
Dateityp : text/x-vcard
Dateigr??e : 206 bytes
Beschreibung: nicht verf?gbar
URL : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20071208/95eea7a2/attachment.vcf
More information about the scribus
mailing list