Kaydet (Commit) 59d93d41 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#108643 don't restore orig size on first chart activate

Change-Id: Ibe51eb81ea1b0874fc1a9018871f07c9af38e8d2
Reviewed-on: https://gerrit.libreoffice.org/39268Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1ace4ed5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment