summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2009-11-24 13:21:26 +0100
committerVladimir Glazunov <vg@openoffice.org>2009-11-24 13:21:26 +0100
commitd1057ad20b9577b69d50bd0f79e5c6a5376e3ede (patch)
tree9c7da6d392419f72a632d6d9287cd0579541f015 /vcl/source
parenteb17ba2dd929c358712fb253bb1f52af6c50a37d (diff)
parent67709c13a6f4c7c15ec3431c494661a1c588e2bc (diff)
CWS-TOOLING: integrate CWS c07v026_DEV300
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/status.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 4aaef6a707b1..ede3bcc107aa 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1320,8 +1320,13 @@ void StatusBar::SetItemText( USHORT nItemId, const XubString& rText )
// adjust item width - see also DataChanged()
long nFudge = GetTextHeight()/4;
long nWidth = GetTextWidth( pItem->maText ) + nFudge;
- if( nWidth > pItem->mnWidth + STATUSBAR_OFFSET )
+ if( (nWidth > pItem->mnWidth + STATUSBAR_OFFSET) ||
+ ((nWidth < pItem->mnWidth) && (mnDX - STATUSBAR_OFFSET) < mnItemsWidth ))
+ {
pItem->mnWidth = nWidth + STATUSBAR_OFFSET;
+ ImplFormat();
+ Invalidate();
+ }
// Item neu Zeichen, wenn StatusBar sichtbar und
// UpdateMode gesetzt ist