diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-29 21:58:17 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-30 16:37:53 +0200 |
commit | 84ee76302fd1d6800d289ba45d96f5e861744416 (patch) | |
tree | 36304f026401c9e5a97ab24ecc5b9ffcb2c36b00 /sw | |
parent | 1f04f53cc794553d68c86c40be285a6c71fb2cc4 (diff) |
Check early bail-out before performing unrelated operations
Change-Id: I335a90070221153810e94938cfcfbfe10688071b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/frmdlg/column.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/frmdlg/column.cxx b/sw/source/ui/frmdlg/column.cxx index 561d8c92c524..f708407c03b7 100644 --- a/sw/source/ui/frmdlg/column.cxx +++ b/sw/source/ui/frmdlg/column.cxx @@ -993,11 +993,11 @@ IMPL_LINK( SwColumnPage, ColModify, NumericField *, pNF ) ------------------------------------------------------------------------*/ IMPL_LINK( SwColumnPage, GapModify, MetricField*, pMetricFld ) { + if (nCols < 2) + return 0; PercentField *pFld = m_aPercentFieldsMap[pMetricFld]; assert(pFld); long nActValue = static_cast< long >(pFld->DenormalizePercent(pFld->GetValue(FUNIT_TWIP))); - if(nCols < 2) - return 0; if(m_pAutoWidthBox->IsChecked()) { const long nMaxGap = static_cast< long > |