[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 19 14:43:35 UTC 2018
vcl/source/window/toolbox2.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 4ba11dd84a1e75a29ad96d4f92c64191c69cacb3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 12:59:59 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 19 16:41:41 2018 +0200
simplify comparison
Change-Id: Ia298ee3e315e241ebc1c1664958d5a3a47820f28
Reviewed-on: https://gerrit.libreoffice.org/61999
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index d03d96759d34..082cab508b82 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1019,8 +1019,7 @@ void ToolBox::SetItemImageMirrorMode( sal_uInt16 nItemId, bool bMirror )
{
ImplToolItem* pItem = &mpData->m_aItems[nPos];
- if ((pItem->mbMirrorMode && !bMirror) ||
- (!pItem->mbMirrorMode && bMirror))
+ if (pItem->mbMirrorMode != bMirror)
{
pItem->mbMirrorMode = bMirror;
if (!!pItem->maImage)
More information about the Libreoffice-commits
mailing list