View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006759 | Scribus | Scripter | public | 2008-02-11 18:58 | 2008-02-12 21:22 |
Reporter | arvee | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.5svn | ||||
Fixed in Version | 1.3.5svn | ||||
Summary | 0006759: scripter getText() returns strings 1 byte too short. | ||||
Description | scripter 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' | ||||
Tags | No tags attached. | ||||
Patch | |||||
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) { |
|
Fixed, thanks! |
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 |