diff options
author | obo <obo@openoffice.org> | 2010-07-29 11:05:21 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-07-29 11:05:21 +0200 |
commit | 6fccb156722c925b666ed10216b4f462544d86ad (patch) | |
tree | 9f7065944525f579968cbe198dd9a81c30c47fb4 | |
parent | beeaca56ab14cb90ac48f079622d791c64e025f2 (diff) | |
parent | 5a8efdf41b9c61685e50bd90a5e2ff199325de77 (diff) |
CWS-TOOLING: integrate CWS vcl113ooo/DEV300_m86
-rwxr-xr-x[-rw-r--r--] | sc/source/ui/app/inputwin.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 2a832cdec..0f8fb4050 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 ); |