[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sdext/source

David Tardon dtardon at redhat.com
Tue Mar 22 12:44:48 UTC 2016


 sdext/source/minimizer/impoptimizer.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit c4e6705c72be40764baa6d47e3f45140da3f1ab9
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Mar 22 09:03:56 2016 +0100

    delete hidden pages before deleting unused masters
    
    Change-Id: I40b624c0e6e6cff2c88815f7d16e862f09d79d5c
    (cherry picked from commit 0f0cea28c75a6565c7803b54536d4a8720ead160)
    Reviewed-on: https://gerrit.libreoffice.org/23422
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx
index f2be936..e0c5f08 100644
--- a/sdext/source/minimizer/impoptimizer.cxx
+++ b/sdext/source/minimizer/impoptimizer.cxx
@@ -524,27 +524,27 @@ bool ImpOptimizer::Optimize()
     if ( !maCustomShowName.isEmpty() )
         ImpExtractCustomShow( mxModel, maCustomShowName );
 
-    if ( mbDeleteUnusedMasterPages )
+    if ( mbDeleteHiddenSlides )
     {
         SetStatusValue( TK_Progress, Any( static_cast< sal_Int32 >( 40 ) ) );
         SetStatusValue( TK_Status, Any( OUString("STR_DELETING_SLIDES") ) );
         DispatchStatus();
-        ImpDeleteUnusedMasterPages( mxModel );
+        ImpDeleteHiddenSlides( mxModel );
     }
 
-    if ( mbDeleteHiddenSlides )
+    if ( mbDeleteNotesPages )
     {
-        SetStatusValue( TK_Progress, Any( static_cast< sal_Int32 >( 40 ) ) );
         SetStatusValue( TK_Status, Any( OUString("STR_DELETING_SLIDES") ) );
         DispatchStatus();
-        ImpDeleteHiddenSlides( mxModel );
+        ImpDeleteNotesPages( mxModel );
     }
 
-    if ( mbDeleteNotesPages )
+    if ( mbDeleteUnusedMasterPages )
     {
+        SetStatusValue( TK_Progress, Any( static_cast< sal_Int32 >( 40 ) ) );
         SetStatusValue( TK_Status, Any( OUString("STR_DELETING_SLIDES") ) );
         DispatchStatus();
-        ImpDeleteNotesPages( mxModel );
+        ImpDeleteUnusedMasterPages( mxModel );
     }
 
     if ( mbOLEOptimization )


More information about the Libreoffice-commits mailing list