Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3092

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/92/3092/1

Fix related to fdo#62224.

On clicking Cancel Button in Format cells Widget in Impress,
Their is change in "Spacing of contents" values.
Values should not be changed.

Change-Id: If9395eda7f82f8e25148f906094588480a6a1029
---
M svx/source/table/tablecontroller.cxx
1 file changed, 4 insertions(+), 1 deletion(-)



diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index 1cb3035..4b01ba8 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -73,6 +73,8 @@
 using namespace ::com::sun::star::text;
 using namespace ::com::sun::star::style;
 
+#define RTL_OK 1
+
 namespace sdr { namespace table {
 
 // --------------------------------------------------------------------
@@ -731,7 +733,8 @@
 
         SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
         std::auto_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( 
NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 );
-        if( pDlg.get() && pDlg->Execute() )
+        // On Clicking Cancel button in Format Cells should not change Values.
+        if( pDlg.get() && ( pDlg->Execute() == RTL_OK ) )
         {
             SfxItemSet aNewSet( *(pDlg->GetOutputItemSet ()) );
 

-- 
To view, visit https://gerrit.libreoffice.org/3092
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If9395eda7f82f8e25148f906094588480a6a1029
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: gokul s <gswaminathan@kacst.edu.sa>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.