summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/visobj.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/embeddedobj/source/commonembedding/visobj.cxx b/embeddedobj/source/commonembedding/visobj.cxx
index 87a7f3933af3..5321bf1f455e 100644
--- a/embeddedobj/source/commonembedding/visobj.cxx
+++ b/embeddedobj/source/commonembedding/visobj.cxx
@@ -178,7 +178,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