summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-12 09:01:28 +0100
committerEike Rathke <erack@redhat.com>2014-08-13 10:39:18 -0500
commit7829f390995c663a7d7d9c14def46f0de70e2598 (patch)
tree602654621a07ded27e6b5ee72bef2e8582661855
parentResolves: fdo#82025 use strlen instead of stored length byte (diff)
downloadcore-7829f390995c663a7d7d9c14def46f0de70e2598.tar.gz
core-7829f390995c663a7d7d9c14def46f0de70e2598.zip
Resolves: fdo#82413 crash in format->column
Change-Id: I3af776c14ec0f224884488fdc99ee26ebbba7cb8 (cherry picked from commit e2d2fa4f0663cf990c0595f8827ff9123c88d41a) Reviewed-on: https://gerrit.libreoffice.org/10877 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--dbaccess/source/ui/dlg/dlgattr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/dlgattr.cxx b/dbaccess/source/ui/dlg/dlgattr.cxx
index 0a83ba3e8bc4..8af7569c36b6 100644
--- a/dbaccess/source/ui/dlg/dlgattr.cxx
+++ b/dbaccess/source/ui/dlg/dlgattr.cxx
@@ -39,13 +39,14 @@ SbaSbAttrDlg::SbaSbAttrDlg(Window* pParent, const SfxItemSet* pCellAttrs,
: SfxTabDialog(pParent, "FieldDialog", "dbaccess/ui/fielddialog.ui", pCellAttrs)
, m_nNumberFormatId(0)
{
-
pNumberInfoItem = new SvxNumberInfoItem( pFormatter, 0 );
if (bRow)
SetText(get<FixedText>("alttitle")->GetText());
if (bHasFormat)
m_nNumberFormatId = AddTabPage("format", RID_SVXPAGE_NUMBERFORMAT);
+ else
+ RemoveTabPage("format");
AddTabPage("alignment", RID_SVXPAGE_ALIGNMENT);
}