summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-25 10:18:56 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2018-08-02 17:39:30 +0200
commit6f8e4f7df7190ce1a1751bf968a5d899e95bc1b9 (patch)
tree864b33e8199b7cbf89cb12ed68f1fd51b87738b8
parent0184d4733415c89f2c17a583569e249b2e829939 (diff)
Resolves: tdf#118862 new instances cannot be edited
Change-Id: I9b10ff4f043949c7140852ac9ad9106ca611c98c Reviewed-on: https://gerrit.libreoffice.org/57962 Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Xisco Faulí <xiscofauli@libreoffice.org> Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r--svx/source/form/datanavi.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 2446606e373d..bb4732cd945c 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -1760,7 +1760,7 @@ namespace svxform
bool DataNavigatorWindow::IsAdditionalPage(sal_uInt16 nId) const
{
- return m_pTabCtrl->GetPagePos(nId) >= 3;
+ return m_pTabCtrl->GetPageName(nId).isEmpty();
}
IMPL_LINK( DataNavigatorWindow, MenuActivateHdl, MenuButton *, pBtn, void )
@@ -1914,8 +1914,10 @@ namespace svxform
XFormsPage* pPage = GetCurrentPage( nId );
DBG_ASSERT( pPage, "DataNavigatorWindow::SetPageModel(): no page" );
if (IsAdditionalPage(nId) || m_pTabCtrl->GetPageName(nId) == "instance")
+ {
// instance page
nPagePos = m_pTabCtrl->GetPagePos( nId );
+ }
m_bIsNotifyDisabled = true;
OUString sText = pPage->SetModel( xFormsModel, nPagePos );
m_bIsNotifyDisabled = false;