View Issue Details

IDProjectCategoryView StatusLast Update
0006759ScribusScripterpublic2008-02-12 21:22
Reporterarvee Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.5svn 
Fixed in Version1.3.5svn 
Summary0006759: scripter getText() returns strings 1 byte too short.
Descriptionscripter getText() returns strings 1-byte too short.

a = createText(20, 20, 100, 15)
setText("quick brown fox", a)
b = getText(a)

b contains now 'quick brown fo'
TagsNo tags attached.
Patch

Activities

2008-02-11 18:58

 

arvee-2008-02-11.diff (479 bytes)   
Index: cmdtext.cpp
===================================================================
--- cmdtext.cpp	(revision 11630)
+++ cmdtext.cpp	(working copy)
@@ -171,7 +171,7 @@
 		PyErr_SetString(WrongFrameTypeError, QObject::tr("Cannot get text of non-text frame.","python error").toLocal8Bit().constData());
 		return NULL;
 	}
-	for (int a = it->firstInFrame(); a < it->lastInFrame(); a++)
+	for (int a = it->firstInFrame(); a <= it->lastInFrame(); a++)
 	{
 		if (it->HasSel)
 		{
arvee-2008-02-11.diff (479 bytes)   

jghali

2008-02-11 20:10

administrator   ~0018956

Fixed, thanks!

Issue History

Date Modified Username Field Change
2008-02-11 18:58 arvee New Issue
2008-02-11 18:58 arvee File Added: arvee-2008-02-11.diff
2008-02-11 19:06 christoph_s Status new => assigned
2008-02-11 19:06 christoph_s Assigned To => subik
2008-02-11 20:09 jghali Assigned To subik => jghali
2008-02-11 20:10 jghali Status assigned => resolved
2008-02-11 20:10 jghali Fixed in Version => 1.3.5svn
2008-02-11 20:10 jghali Resolution open => fixed
2008-02-11 20:10 jghali Note Added: 0018956
2008-02-12 21:22 cbradney Status resolved => closed