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

Caolán McNamara caolanm at redhat.com
Mon Jun 26 15:16:01 UTC 2017


 embeddedobj/source/commonembedding/visobj.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 59d93d41537fa806219d705a6d06ed26bf09f2f3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jun 26 14:35:24 2017 +0100

    Resolves: tdf#108643 don't restore orig size on first chart activate
    
    Change-Id: Ibe51eb81ea1b0874fc1a9018871f07c9af38e8d2
    Reviewed-on: https://gerrit.libreoffice.org/39268
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/embeddedobj/source/commonembedding/visobj.cxx b/embeddedobj/source/commonembedding/visobj.cxx
index de4d61700f05..7ed1bdcc029e 100644
--- a/embeddedobj/source/commonembedding/visobj.cxx
+++ b/embeddedobj/source/commonembedding/visobj.cxx
@@ -165,7 +165,9 @@ embed::VisualRepresentation SAL_CALL OCommonEmbeddedObject::getPreferredVisualRe
         // themselves to a default size OLESIZE
         awt::Size aOrigSize = getVisualAreaSize(nAspect);
         changeState(embed::EmbedStates::RUNNING);
-        if (aOrigSize != getVisualAreaSize(nAspect))
+        const bool bIsChart = GetDocumentServiceName() == "com.sun.star.chart2.ChartDocument";
+        // tdf#108643 unless its a chart, cause those are weird (#i103460#)
+        if (!bIsChart && aOrigSize != getVisualAreaSize(nAspect))
             setVisualAreaSize(nAspect, aOrigSize);
 
         // the links should be switched back to loaded state for now to avoid locking problems


More information about the Libreoffice-commits mailing list