summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 0a48c570f1da..c9157bc58df3 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -734,11 +734,12 @@ IMPL_LINK_TYPED( SwInsertDBColAutoPilot, TableFormatHdl, Button*, pButton, void
::GetHtmlMode( pView->GetDocShell() )));
}
- if( m_pLbTableCol->GetEntryCount() != pRep->GetAllColCount() )
+ sal_Int32 nCols = m_pLbTableCol->GetEntryCount();
+ if (nCols != pRep->GetAllColCount() && nCols > 0)
{
// Number of columns has changed: then the TabCols have to be adjusted
long nWidth = pRep->GetWidth();
- const sal_Int32 nCols = m_pLbTableCol->GetEntryCount() - 1;
+ --nCols;
SwTabCols aTabCols( nCols );
aTabCols.SetRight( nWidth );
aTabCols.SetRightMax( nWidth );
core/commit/sc/source/ui/view/cellsh3.cxx?id=4573ccfffda4c2bea55d1da2ac1357bcde91e67a'>changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien 2010-01-27dr75: rebase mergeDaniel Rentz 2010-01-12dr75: #i100423# Formula input into cell range fails if parentheses are highli...Thomas Benisch 2010-01-08autorecovery: merge after rebase to m69Frank Schoenheit [fs] 2009-12-15autorecovery: SfxViewFrame's SfxFrame is a reference now, no pointer (it can ...Frank Schoenheit [fs] 2009-10-16#i103496#: split svtools; improve ConfitItemsMathias Bauer 2009-07-15CWS-TOOLING: integrate CWS dr68Ivo Hinkelmann 2009-04-22CWS-TOOLING: integrate CWS dr67Ivo Hinkelmann 2009-02-11CWS-TOOLING: integrate CWS tbe35Oliver Bolte 2008-09-30CWS-TOOLING: integrate CWS dr63Vladimir Glazounov 2008-04-11INTEGRATION: CWS changefileheader (1.23.80); FILE MERGEDRüdiger Timm 2008-02-05INTEGRATION: CWS calcsolver (1.22.162); FILE MERGEDIvo Hinkelmann 2007-05-22INTEGRATION: CWS chart2mst3 (1.19.84); FILE MERGEDVladimir Glazounov 2007-04-26INTEGRATION: CWS residcleanup (1.19.180); FILE MERGEDRüdiger Timm 2007-02-27INTEGRATION: CWS calcwarnings (1.19.110); FILE MERGEDVladimir Glazounov 2006-07-21INTEGRATION: CWS pchfix01 (1.18.62); FILE MERGEDKurt Zenker 2006-05-02INTEGRATION: CWS sfxcleanup (1.17.126); FILE MERGEDRüdiger Timm 2005-09-08INTEGRATION: CWS ooo19126 (1.16.326); FILE MERGEDRüdiger Timm 2004-10-04INTEGRATION: CWS mav09 (1.11.58); FILE MERGEDKurt Zenker 2004-08-02INTEGRATION: CWS os35 (1.13.34); FILE MERGEDKurt Zenker 2004-08-02INTEGRATION: CWS formatpaintbrush02 (1.13.66); FILE MERGEDKurt Zenker 2004-06-04INTEGRATION: CWS rowlimit (1.10.302); FILE MERGEDOliver Bolte 2004-05-10INTEGRATION: CWS dialogdiet01 (1.11.16); FILE MERGEDJens-Heiner Rechtien 2004-03-19INTEGRATION: CWS sab008 (1.10.230); FILE MERGEDOliver Bolte 2002-11-20#83422# different error messages for protected cells and part of array formulaNiklas Nebel 2002-09-20#102955# don't rely on IsMarked at view's MarkData to detect selectionNiklas Nebel 2002-09-13#101390#; convert between twips and hth_mm if used in a macroSascha Ballach 2002-09-03#101061# handling of recorded slot SID_ENTER_STRINGNiklas Nebel 2002-08-30#74215# allow locked modifiers in column/row headersNiklas Nebel 2002-07-08#100952#: new slots for recordingMathias Bauer 2001-11-19#94539# Support CJK/CTL in table autoformat dialogsDaniel Rentz 2001-05-21#44993# Tools/HyphenationNiklas Nebel