summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/tpbitmap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index b668ba6e7ebd..1e25750eefc6 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -362,7 +362,7 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* rAttrs )
ClickScaleHdl(*m_xTsbScale);
- if(rBitmapSize.Width() > 0 && rBitmapSize.Height() > 0)
+ if(!rBitmapSize.IsEmpty())
{
if (eRelative == TRISTATE_TRUE)
{
@@ -436,7 +436,7 @@ void SvxBitmapTabPage::ClickBitmapHdl_Impl()
void SvxBitmapTabPage::CalculateBitmapPresetSize()
{
- if(rBitmapSize.Width() > 0 && rBitmapSize.Height() > 0)
+ if(!rBitmapSize.IsEmpty())
{
long nObjectWidth = static_cast<long>(m_fObjectWidth);
long nObjectHeight = static_cast<long>(m_fObjectHeight);