summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/table/tablecontroller.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 0277aaf9bdf5..0330cf7f13f5 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -61,6 +61,7 @@
#include "svx/svdpage.hxx"
#include "tableundo.hxx"
#include "tablelayouter.hxx"
+#include <vcl/msgbox.hxx>
using ::editeng::SvxBorderLine;
using ::rtl::OUString;
@@ -736,7 +737,8 @@ void SvxTableController::onFormatTable( SfxRequest& rReq )
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
std::auto_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 );
- if( pDlg.get() && pDlg->Execute() )
+ // Even Cancel Button is returning positive(101) value,
+ if( pDlg.get() && ( pDlg->Execute() == RET_OK ) )
{
SfxItemSet aNewSet( *(pDlg->GetOutputItemSet ()) );