diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-16 13:23:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-16 13:23:19 +0100 |
commit | 8502d64878164144bb7f87d84117e260848cf9e3 (patch) | |
tree | 6287c4889506ffbddc517cc4f30c83e2f7e2fd7a /UnoControls | |
parent | aa65aea24fddd497dc0a853dd1793978c0461f84 (diff) |
Daft "\0" triggers assert in OUString literal ctor
...try
GetProcessServiceManager().createInstance("stardiv.UnoControls.StatusIndicator")
in Basic...
Change-Id: Iafc22188feb8a1d3f1b19ac4f6e209be62a44d17
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/controls/statusindicator.cxx | 2 | ||||
-rw-r--r-- | UnoControls/source/inc/statusindicator.hxx | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx index fa9ef0ba82a6..240d148743a9 100644 --- a/UnoControls/source/controls/statusindicator.cxx +++ b/UnoControls/source/controls/statusindicator.cxx @@ -60,7 +60,7 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext > m_xProgressBar->setVisible( true ); // Reset to defaults !!! // (progressbar take automatically its own defaults) - m_xText->setText( STATUSINDICATOR_DEFAULT_TEXT ); + m_xText->setText( "" ); --m_refCount; } diff --git a/UnoControls/source/inc/statusindicator.hxx b/UnoControls/source/inc/statusindicator.hxx index 50fcbddeefba..4760d3ea1ceb 100644 --- a/UnoControls/source/inc/statusindicator.hxx +++ b/UnoControls/source/inc/statusindicator.hxx @@ -42,7 +42,6 @@ class ProgressBar; #define FIXEDTEXT_MODELNAME "com.sun.star.awt.UnoControlFixedTextModel" #define CONTROLNAME_TEXT "Text" // identifier the control in container #define CONTROLNAME_PROGRESSBAR "ProgressBar" // -||- -#define STATUSINDICATOR_DEFAULT_TEXT "\0" #define STATUSINDICATOR_BACKGROUNDCOLOR TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lighgray #define STATUSINDICATOR_LINECOLOR_BRIGHT TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white #define STATUSINDICATOR_LINECOLOR_SHADOW TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black |