[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/shapes/text
From: Thomas Zander <zander () kde ! org>
Date: 2007-01-31 22:30:03
Message-ID: 1170282603.180791.10323.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 628914 by zander:
Make word wrapping behave like expected.
The enum; WrapAnywhere (that I use now) does not do what the docs say, which is to
break at the end of a line ignoring word boundaries.
But the behavior I see is actually like WrapAtWordBoundaryOrAnywhere, which is what
we want.
M +1 -0 Layout.cpp
--- trunk/koffice/shapes/text/Layout.cpp #628913:628914
@@ -230,6 +230,7 @@
m_y += topMargin();
layout = m_block.layout();
QTextOption options = layout->textOption();
+ options.setWrapMode(QTextOption::WrapAnywhere);
options.setAlignment(m_format.alignment());
if(m_isRtl)
options.setTextDirection(Qt::RightToLeft);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic