summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a539be)
raw | patch | inline | side by side (parent: 6a539be)
author | Jon A. Cruz <jon@joncruz.org> | |
Thu, 31 Dec 2009 07:28:06 +0000 (23:28 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Thu, 31 Dec 2009 07:28:06 +0000 (23:28 -0800) |
src/sp-flowtext.cpp | patch | blob | history |
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp
index feb79cd9a75965fe85907ad462f3591d2bb0dfe0..53bcd425db5916718ba4d13679614310615cde5d 100644 (file)
--- a/src/sp-flowtext.cpp
+++ b/src/sp-flowtext.cpp
Inkscape::Text::Layout const &layout = SP_FLOWTEXT(item)->layout;
int const nChars = layout.iteratorToCharIndex(layout.end());
- char *trunc = "";
- if (layout.inputTruncated()) {
- trunc = _(" [truncated]");
- }
+ char const *trunc = (layout.inputTruncated()) ? _(" [truncated]") : "";
- if (SP_FLOWTEXT(item)->has_internal_frame())
+ if (SP_FLOWTEXT(item)->has_internal_frame()) {
return g_strdup_printf(ngettext("<b>Flowed text</b> (%d character%s)", "<b>Flowed text</b> (%d characters%s)", nChars), nChars, trunc);
- else
+ } else {
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 void sp_flowtext_snappoints(SPItem const *item, bool const target, SnapPointsWithType &p, Inkscape::SnapPreferences const */*snapprefs*/)