image operation: make sure embedded svgs are shown in writer only

fixed regression caused by 1c86fd2ff869d36
regression: while we move textbox in impress previews would not go away

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1b3cfefdd6abb7f81ff741eee4edab7e349c932d
This commit is contained in:
Pranam Lashkari 2022-03-18 17:06:45 +05:30 committed by Szymon Kłos
parent 91ab74f65c
commit 7821ce5368

View file

@ -1973,7 +1973,7 @@ L.CanvasTileLayer = L.Layer.extend({
var wasVisibleSVG = this._graphicMarker._hasVisibleEmbeddedSVG();
this._graphicMarker.removeEmbeddedSVG();
this._graphicMarker.addEmbeddedSVG(textMsg);
if (wasVisibleSVG)
if (wasVisibleSVG && this._graphicSelection.extraInfo.isWriterGraphic)
this._graphicMarker._showEmbeddedSVG();
}
},