[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kotext
From: Fredrik Edemar <f_edemar () linux ! se>
Date: 2006-03-22 0:02:48
Message-ID: 1142985768.718181.4072.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 521237 by fedemar:
Ignore "supress double spaces" in selections. TODO: check if there are spaces before \
or after the selection.
CCBUG: 119444
M +2 -2 KoAutoFormat.cpp
--- trunk/koffice/lib/kotext/KoAutoFormat.cpp #521236:521237
@@ -2195,12 +2195,12 @@
bool KoAutoFormat::doIgnoreDoubleSpace( KoTextParag *parag, int index, QChar ch )
{
- if( m_ignoreDoubleSpace && ch==' ' && index >= 0 )
+ if( m_ignoreDoubleSpace && ch==' ' && index >= 0 && !parag->hasAnySelection() )
{
KoTextString *s = parag->string();
QChar ch = s->at( index ).c;
if ( ch==' ' )
- return true;
+ return true;
}
return false;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic