[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Wed Apr 5 14:45:46 UTC 2017


 cui/source/dialogs/postdlg.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 4a84cbaa3786e6ef9fa91c7eb3a6a49a9010456b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 5 15:44:50 2017 +0100

    prev/next buttons start invisible in the .ui
    
    Change-Id: Iec577adb469109a11188e83d95de6ed3960bc1c4

diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx
index 612e38221c68..057198527390 100644
--- a/cui/source/dialogs/postdlg.cxx
+++ b/cui/source/dialogs/postdlg.cxx
@@ -64,11 +64,8 @@ SvxPostItDialog::SvxPostItDialog(vcl::Window* pParent, const SfxItemSet& rCoreSe
     bool bNew = true;
     sal_uInt16 nWhich = 0;
 
-    if ( !bPrevNext )
-    {
-        m_pPrevBtn->Hide();
-        m_pNextBtn->Hide();
-    }
+    m_pPrevBtn->Show(bPrevNext);
+    m_pNextBtn->Show(bPrevNext);
 
     nWhich = rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_AUTHOR );
     OUString aAuthorStr, aDateStr;


More information about the Libreoffice-commits mailing list