summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/inputwin.cxx
diff options
context:
space:
mode:
authorDaniel Rentz [dr] <daniel.rentz@oracle.com>2010-12-09 10:13:55 +0100
committerDaniel Rentz [dr] <daniel.rentz@oracle.com>2010-12-09 10:13:55 +0100
commitc1d9bbfb6d3d0e41905ab9afa65a1c6bcc0bf14f (patch)
tree7ed805a84aed51a973632d51f05413f16bf45627 /sc/source/ui/app/inputwin.cxx
parent51ccd3874858452681a716ca47d45f8a2ae8beac (diff)
parentde667b72e642d4bb029143d5239c850fd45c17a8 (diff)
mib19: rebase to DEV300m95
Diffstat (limited to 'sc/source/ui/app/inputwin.cxx')
-rwxr-xr-x[-rw-r--r--]sc/source/ui/app/inputwin.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 2cabe7f9f2d6..b028a0a153ce 100644..100755
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -757,7 +757,11 @@ ScTextWnd::ScTextWnd( Window* pParent )
aTextFont.SetColor (aTxtColor);
aTextFont.SetWeight ( WEIGHT_NORMAL );
- SetSizePixel ( Size(1,TBX_WINDOW_HEIGHT) );
+ Size aSize(1,TBX_WINDOW_HEIGHT);
+ Size aMinEditSize( Edit::GetMinimumEditSize() );
+ if( aMinEditSize.Height() > aSize.Height() )
+ aSize.Height() = aMinEditSize.Height();
+ SetSizePixel ( aSize );
SetBackground ( aBgColor );
SetLineColor ( COL_BLACK );
SetMapMode ( MAP_TWIP );