summaryrefslogtreecommitdiff
path: root/vcl/source/window/status.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-23 13:06:05 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-23 13:06:05 +0000
commit77807aea5dc343c468e95d295520ce34327e15ac (patch)
tree828a52f7fb771e73de310f8e590174e9743a589e /vcl/source/window/status.cxx
parent322fca61e2e1432dd90ac7c92de7f5aab413caeb (diff)
INTEGRATION: CWS fwkfinal1 (1.15.66); FILE MERGED
2005/03/11 11:02:16 cd 1.15.66.1: #i44736# Adjust item width as in DataChanged()
Diffstat (limited to 'vcl/source/window/status.cxx')
-rw-r--r--vcl/source/window/status.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 075235ba27a3..883c0ef05fc7 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: status.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: rt $ $Date: 2005-01-27 10:19:58 $
+ * last change: $Author: vg $ $Date: 2005-03-23 14:06:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1268,6 +1268,11 @@ void StatusBar::SetItemText( USHORT nItemId, const XubString& rText )
{
pItem->maText = rText;
+ // adjust item width - see also DataChanged()
+ long nWidth = GetTextWidth( pItem->maText );
+ if( nWidth > pItem->mnWidth + STATUSBAR_OFFSET )
+ pItem->mnWidth = nWidth + STATUSBAR_OFFSET;
+
// Item neu Zeichen, wenn StatusBar sichtbar und
// UpdateMode gesetzt ist
if ( pItem->mbVisible && !mbFormat && ImplIsItemUpdate() )