diff options
| author | buliabyak <> | 2009-12-21 05:23:37 +0000 |
|---|---|---|
| committer | buliabyak <> | 2009-12-21 05:23:37 +0000 |
| commit | 4cc7eb64107fc32a7c364545acc635e504736cf6 (patch) | |
| tree | 7fb8fb10b6b43ed71f292a38477b81d22cfb0146 /src/sp-flowtext.cpp | |
| parent | patch by mbeach for UPC-A checksum (diff) | |
| download | inkscape-4cc7eb64107fc32a7c364545acc635e504736cf6.tar.gz inkscape-4cc7eb64107fc32a7c364545acc635e504736cf6.zip | |
utilities and UI support for identifying truncated flowtext and text-on-path
(bzr r8898)
Diffstat (limited to 'src/sp-flowtext.cpp')
| -rw-r--r-- | src/sp-flowtext.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index 6af2f7169..e4259e52c 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -372,10 +372,16 @@ static gchar *sp_flowtext_description(SPItem *item) { Inkscape::Text::Layout const &layout = SP_FLOWTEXT(item)->layout; int const nChars = layout.iteratorToCharIndex(layout.end()); + + char *trunc = ""; + if (layout.inputTruncated()) { + trunc = _(" [truncated]"); + } + if (SP_FLOWTEXT(item)->has_internal_frame()) - return g_strdup_printf(ngettext("<b>Flowed text</b> (%d character)", "<b>Flowed text</b> (%d characters)", nChars), nChars); + return g_strdup_printf(ngettext("<b>Flowed text</b> (%d character%s)", "<b>Flowed text</b> (%d characters%s)", nChars), nChars, trunc); else - return g_strdup_printf(ngettext("<b>Linked flowed text</b> (%d character)", "<b>Linked flowed text</b> (%d characters)", nChars), nChars); + return g_strdup_printf(ngettext("<b>Linked flowed text</b> (%d character%s)", "<b>Linked flowed text</b> (%d characters%s)", nChars), nChars, trunc); } static NRArenaItem * |
