[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/plugins/textshape
From:       Thomas Zander <zander () kde ! org>
Date:       2010-12-29 14:25:32
Message-ID: 20101229142532.BC74E3E1F8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210096 by zander:

Make it possible to set the paragraph debug info columnwidth

Using the environment variable KOFFICE_DEBUG_COLUMNS you can now hit
Ctrl-Shift-P (after enabling the kotext debug area) to get the paragraph
debugging with current style etc and the amount of columns used for the
acutal paragraphs data is taken from that variable.

 M  +3 -1      TextTool.cpp  


--- trunk/koffice/plugins/textshape/TextTool.cpp #1210095:1210096
@@ -2101,7 +2101,9 @@
     KoTextEditor *textEditor = m_textEditor.data();
     if (textEditor == 0)
         return;
-    const int CHARSPERLINE = 80; // TODO Make configurable using ENV var?
+    int CHARSPERLINE = QString::fromLatin1(getenv("KOFFICE_DEBUG_COLUMNS")).toInt();
+    if (CHARSPERLINE < 5)
+        CHARSPERLINE = 80;
     const int CHARPOSITION = 278301935;
     KoTextDocument document(textEditor->document());
     KoStyleManager *styleManager = document.styleManager();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic