summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-02-24 11:58:11 +0000
committerjghali <jghali@11d20701-8431-0410-a711-e3c959e3b870>2012-02-24 11:58:11 +0000
commit683d0bf023a15085312404500d907fddcd2926a3 (patch)
tree105448b233d811e465d1609fd7c9af51d7be0ced
parent64ffd5a23b712c10d94a8be99d08430d29c33d5e (diff)
downloadscribus-683d0bf023a15085312404500d907fddcd2926a3.tar.gz
scribus-683d0bf023a15085312404500d907fddcd2926a3.tar.xz
scribus-683d0bf023a15085312404500d907fddcd2926a3.zip
#10599: scribus.textOverflows does not work as documented
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17329 11d20701-8431-0410-a711-e3c959e3b870
-rw-r--r--scribus/doc/en/scripterapi-textframes.html2
-rw-r--r--scribus/doc/fr/scripterapi-textframes.html4
-rw-r--r--scribus/plugins/scriptplugin/cmdtext.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/scribus/doc/en/scripterapi-textframes.html b/scribus/doc/en/scripterapi-textframes.html
index 4f11461..3654890 100644
--- a/scribus/doc/en/scripterapi-textframes.html
+++ b/scribus/doc/en/scripterapi-textframes.html
@@ -155,7 +155,7 @@ selected item is used.</p>
<dt><a name="-textOverflows"><strong>textOverflows</strong></a>(...)</dt>
<dd><code>textOverflows(["name", nolinks]) -&gt; integer</code>
-<p>Returns the actual number of overflowing characters in text frame "name". If is nolinks set to non zero value it takes only one frame - it doesn't use text frame linking. Without this parameter it search all linking chain.</p>
+<p>Returns 1 if there are overflowing characters in text frame "name", 0 if not. If is nolinks set to non zero value it takes only one frame - it doesn't use text frame linking. Without this parameter it search all linking chain.</p>
<p>May raise WrongFrameTypeError if the target frame is not an text frame</p></dd>
</dl>
diff --git a/scribus/doc/fr/scripterapi-textframes.html b/scribus/doc/fr/scripterapi-textframes.html
index 5786b9b..62201ed 100644
--- a/scribus/doc/fr/scripterapi-textframes.html
+++ b/scribus/doc/fr/scripterapi-textframes.html
@@ -121,8 +121,8 @@ Voir les FAQ pour plus de d&eacute;tails. Si "nom" n'est pas fourni, l'&eacute;l
<dt><a name="-textOverflows"><strong>textOverflows</strong></a>(...)</dt>
<dd><code><a href="#-textOverflows">textOverflows</a>(["nom",
sansLiens]) -&gt; nombre entier</code>
-<p>Retourne le nombre actuel de caract&egrave;res en surplus dans le
-cadre de texte "nom". Si sansLiens est une valeur non nulle, il prend
+<p>Retourne 1 en cas de pr&eacute;sence de caract&egrave;res en surplus dans le
+cadre de texte "nom", 0 sinon. Si sansLiens est une valeur non nulle, il prend
seulement un cadre - il n'utilise pas les liens de cadre. Sans
ce param&egrave;tre, il cherche toute les cha&icirc;nes li&eacute;es.</p>
<p>Peut g&eacute;n&eacute;rer WrongFrameTypeError si le cadre cible n'est pas un
diff --git a/scribus/plugins/scriptplugin/cmdtext.h b/scribus/plugins/scriptplugin/cmdtext.h
index 1a9a142..ffff82d 100644
--- a/scribus/plugins/scriptplugin/cmdtext.h
+++ b/scribus/plugins/scriptplugin/cmdtext.h
@@ -365,7 +365,7 @@ PyObject *scribus_tracetext(PyObject * self, PyObject* args);
PyDoc_STRVAR(scribus_istextoverflowing__doc__,
QT_TR_NOOP("textOverflows([\"name\", nolinks]) -> integer\n\
\n\
-Returns the actual number of overflowing characters in text frame \"name\".\n\
+Returns 1 if there are overflowing characters in text frame \"name\", 0 if not.\n\
If is nolinks set to non zero value it takes only one frame - it doesn't\n\
use text frame linking. Without this parameter it search all linking chain.\n\
\n\