[Libreoffice-commits] core.git: sd/source

Muthu Subramanian muthu.subramanian.karunanidhi at ericsson.com
Thu Oct 23 08:00:58 PDT 2014


 sd/source/core/drawdoc3.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 0bab8aee77cfc2ffdbc6d3ef6a869284bc12dff4
Author: Muthu Subramanian <muthu.subramanian.karunanidhi at ericsson.com>
Date:   Thu Oct 23 20:30:26 2014 +0530

    fdo#85247: copy and paste of a slide results in a blue slide in presentation mode.
    
    Seems like "Default" is handled specially or probably
    the copy-buffer is broken
    This now checks for slide 'type' as well, before cosidering it a duplicate
    
    Change-Id: If8c472bcefb54cee72e7411f92a76b4e2db2b6ce

diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index e379ed0..d3e92f9 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -106,9 +106,11 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
 
         OUString aTest(aFullTest);
 
-        if (aTest == aLayout)
+        if (aTest == aLayout && pBMMPage->GetPageKind() == pTestPage->GetPageKind())
         {
-            if( bRenameDuplicates && pTestPage->getHash() != pBMMPage->getHash() )
+            // Ignore Layouts with "Default" these seem to be special - in the sense that there are lot of assumption all over Impress
+            // about this
+            if( bRenameDuplicates && aTest != OUString( SdResId( STR_LAYOUT_DEFAULT_NAME ) ) && pTestPage->getHash() != pBMMPage->getHash() )
             {
                 pBookmarkDoc->RenameLayoutTemplate( pBMMPage->GetLayoutName(), OUString(pBMMPage->GetName())+=OUString("_") );
                 aLayout = pBMMPage->GetName();


More information about the Libreoffice-commits mailing list