diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 13:52:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 16:08:51 +0200 |
commit | d7855213ae60d79fc51d8b9bfe49f13200137c05 (patch) | |
tree | a9f852a6ddacffce339945e8667500d3531257a4 /cui | |
parent | b267650fd097f16d1b31c87a11a497294ad4ee42 (diff) |
add an IsEmpty method to tools::Size and use it
Change-Id: I7f5201e2ea6c74329336e16bf219630e38ff92cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92264
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpbitmap.cxx | 4 |
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); |