diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-01-13 11:44:50 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-16 20:37:23 +0000 |
commit | 75043c23c7d08fcc9b22a38fe08014d1381e2f90 (patch) | |
tree | a23a7b380e92f31a7525e4e454656775d588d058 /sw | |
parent | 8c3b6b34cea6212f4f3f266cc92e76de97d0aa55 (diff) |
fdo#73414 Remove Increase Font limits for Writer
and re-use the same code in sidebar.
Change-Id: Ic342be479f6f5b23ea2dd79b7cf6c77897b27dc1
Reviewed-on: https://gerrit.libreoffice.org/7398
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/shells/txtattr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx index 0acaf93e3705..b952a4ab7bc6 100644 --- a/sw/source/ui/shells/txtattr.cxx +++ b/sw/source/ui/shells/txtattr.cxx @@ -55,8 +55,8 @@ #include <SwStyleNameMapper.hxx> #include "swabstdlg.hxx" #include "chrdlg.hrc" -const SwTwips lFontInc = 2 * 20; // ==> PointToTwips(2) -const SwTwips lFontMaxSz = 72 * 20; // ==> PointToTwips(72) +const SwTwips lFontInc = 40; // 2pt +const SwTwips lFontMaxSz = 19998; // 999.9pt @@ -239,7 +239,7 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq) SvxFontHeightItem aSize( *(const SvxFontHeightItem*)pI ); SwTwips lSize = (SwTwips) aSize.GetHeight(); - if (bGrow) + if ( bGrow ) { if( lSize == lFontMaxSz ) break; // That's all, further up is not possible @@ -248,10 +248,10 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq) } else { - if( 4 == lSize ) + if( lSize == lFontInc ) break; - if( ( lSize -= lFontInc ) < 4 ) - lSize = 4; + if( ( lSize -= lFontInc ) < lFontInc ) + lSize = lFontInc; } aSize.SetHeight( lSize ); aAttrSet.Put( aSize ); |