summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorFelipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>2017-06-10 04:20:07 +0000
committerFelipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>2017-06-10 04:20:07 +0000
commit8268b0b9173f87ac10995139b28b68908392abb6 (patch)
treebe4aec76332cb903dac2405370454433a54f3400 /src/sp-text.cpp
parentMerge branch 'disable_libnrtype_debugging_code' into 'master' (diff)
downloadinkscape-8268b0b9173f87ac10995139b28b68908392abb6.tar.gz
inkscape-8268b0b9173f87ac10995139b28b68908392abb6.zip
libnrtype/Layout-TNG refactoring for better code legibility
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index b066ca3de..2a88c5009 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -620,12 +620,16 @@ void SPText::rebuildLayout()
if (SP_IS_TEXTPATH(&child)) {
SPTextPath const *textpath = SP_TEXTPATH(&child);
if (textpath->originalPath != NULL) {
- //g_print("%s", layout.dumpAsText().c_str());
+#if DEBUG_TEXTLAYOUT_DUMPASTEXT
+ g_print("%s", layout.dumpAsText().c_str());
+#endif
layout.fitToPathAlign(textpath->startOffset, *textpath->originalPath);
}
}
}
- //g_print("%s", layout.dumpAsText().c_str());
+#if DEBUG_TEXTLAYOUT_DUMPASTEXT
+ g_print("%s", layout.dumpAsText().c_str());
+#endif
// set the x,y attributes on role:line spans
for (auto& child: children) {