Files
ElyOffice/patches/libreoffice/0024-lok-math-tiles-keep-the-painted-tile.patch
T
ZacharyZhang-NY b7fca0146d Ely Office: six offline-first desktop apps in Rust and GPUI
ElyDoc, ElyTable, ElyShow (LibreOfficeKit), ElyPDF (MuPDF), ElyTree (Git),
ElyMark (Milkdown and CodeMirror in CEF). ElyMail and ElyAgent follow.
2026-10-08 21:20:08 -04:00

20 lines
946 B
Diff

LOK: the Math in-place helper erased the painted tile
PaintAllInPlaceOnTile resized the tile device with the default erase,
so every Impress tile painted during text edit came back blank (black on
macOS). Keep the content, as the chart helper does.
diff --git a/sfx2/source/view/lokstarmathhelper.cxx b/sfx2/source/view/lokstarmathhelper.cxx
index 78f27b9..ff2becb 100644
--- a/sfx2/source/view/lokstarmathhelper.cxx
+++ b/sfx2/source/view/lokstarmathhelper.cxx
@@ -220,7 +220,7 @@ void LokStarMathHelper::PaintAllInPlaceOnTile(VirtualDevice& rDevice, int nOutpu
const int nPartForCurView = pCurView->getPart();
// Resizes the virtual device to contain the entries context
- rDevice.SetOutputSizePixel({ nOutputWidth, nOutputHeight });
+ rDevice.SetOutputSizePixel({ nOutputWidth, nOutputHeight }, /*bErase*/false);
auto popIt = rDevice.ScopedPush(vcl::PushFlags::MAPMODE);
MapMode aMapMode(rDevice.GetMapMode());