summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-06 15:14:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-07 20:36:38 +0100
commitf6080df9e64b6291202e75354f9458fc0895932e (patch)
tree0d369e4ade1ba94ee5b1b92bcf956e6a48ba87ba
parent0ed214fd8f64eca4f3192b1646595500d772b243 (diff)
return blank ident if empty notebook
Change-Id: Icede4b1458fe858cc6d406b4cbae9f8d579d417b Reviewed-on: https://gerrit.libreoffice.org/84660 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 15a6981a4a8f..fc9a04f14025 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -5893,7 +5893,8 @@ public:
virtual OString get_current_page_ident() const override
{
- return get_page_ident(get_current_page());
+ const int nPage = get_current_page();
+ return nPage != -1 ? get_page_ident(nPage) : OString();
}
virtual weld::Container* get_page(const OString& rIdent) const override