summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-12 09:01:28 +0100
committerDavid Tardon <dtardon@redhat.com>2014-08-12 03:28:42 -0500
commit2c57f8b716a5e8e378ac4fe85ef1d62a4fc65dce (patch)
tree8ba79cc26b597a57c43a7367e5a98772cfddc910 /dbaccess
parent26a0f8b04f7d5ba8ee7e5f68e8379d152b03a2c7 (diff)
Resolves: fdo#82413 crash in format->column
Change-Id: I3af776c14ec0f224884488fdc99ee26ebbba7cb8 (cherry picked from commit e2d2fa4f0663cf990c0595f8827ff9123c88d41a) Reviewed-on: https://gerrit.libreoffice.org/10876 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'dbaccess')
-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);
}