summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-18 21:48:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-18 21:48:41 +0100
commit9aa8e185d49cd694ac1e00771c1ef2c02cf08382 (patch)
treee72d167dd3b812eb958c87b729edad6573aa4c28
parent3b696181ebf1fd4c3ecff4a1fc9ed84a5db9b3e3 (diff)
minimize calls to queue_resize
Change-Id: Idbb7da30c985253a37ff6fe0e86fe04dec2dbbeb
-rw-r--r--vcl/source/control/fixed.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index 254494c49b56..9d35c1f45640 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -463,8 +463,11 @@ void FixedText::FillLayoutData() const
void FixedText::setMaxWidthChars(sal_Int32 nWidth)
{
- m_nMaxWidthChars = nWidth;
- queue_resize();
+ if (nWidth != m_nMaxWidthChars)
+ {
+ m_nMaxWidthChars = nWidth;
+ queue_resize();
+ }
}
bool FixedText::set_property(const rtl::OString &rKey, const rtl::OString &rValue)