diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:29:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:39:21 +0100 |
commit | 747ba6295d22c2e65be984cd750f240dc106482b (patch) | |
tree | 2901826f122497118f97b880d4aa70c552f89733 /editeng | |
parent | 5e3a11df3ecc5399279fa78338ddc7bd31eaec36 (diff) |
bool improvements
Change-Id: I2a0980a603822ffdf74a38ba0b41ba27a6830861
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/outliner/outlin2.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unoforou.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx index ea53121f112d..ea4624851d46 100644 --- a/editeng/source/outliner/outlin2.cxx +++ b/editeng/source/outliner/outlin2.cxx @@ -527,7 +527,7 @@ void Outliner::SetVertical( sal_Bool b ) pEditEngine->SetVertical( b ); } -sal_Bool Outliner::IsVertical() const +bool Outliner::IsVertical() const { return pEditEngine->IsVertical(); } diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx index 330068871280..d671d9e0c025 100644 --- a/editeng/source/uno/unoforou.cxx +++ b/editeng/source/uno/unoforou.cxx @@ -298,7 +298,7 @@ Rectangle SvxOutlinerForwarder::GetCharBounds( sal_Int32 nPara, sal_uInt16 nInde // don't rotate for vertical text. Size aSize( rOutliner.CalcTextSize() ); ::std::swap( aSize.Width(), aSize.Height() ); - bool bIsVertical( rOutliner.IsVertical() == sal_True ); + bool bIsVertical( rOutliner.IsVertical() ); // #108900# Handle virtual position one-past-the end of the string if( nIndex >= GetTextLen(nPara) ) @@ -377,7 +377,7 @@ sal_Bool SvxOutlinerForwarder::GetIndexAtPoint( const Point& rPos, sal_Int32& nP ::std::swap( aSize.Width(), aSize.Height() ); Point aEEPos( SvxEditSourceHelper::UserSpaceToEE( rPos, aSize, - rOutliner.IsVertical() == sal_True )); + rOutliner.IsVertical() )); EPosition aDocPos = rOutliner.GetEditEngine().FindDocPosition( aEEPos ); |