[Libreoffice-commits] core.git: starmath/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jan 29 17:36:50 UTC 2020
starmath/source/ElementsDockingWindow.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3544c475c0fd77f720f0767293656eaa02427e5e
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jan 29 16:09:19 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jan 29 18:35:53 2020 +0100
push/pop mapmode to avoid 'incorrect MapMode?' warning
since...
commit 644ebf7823c85973e2724cbfcf403cb63b054bfe
Date: Tue Jan 28 20:40:15 2020 +0000
weld SmElementsDockingWindow
Change-Id: I072f8b9d31be93722930d30b183766b7795f7a26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87698
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 8840bcfa1b7c..8eca86c24077 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -828,6 +828,8 @@ void SmElementsControl::addElement(SmParser &rParser, const OUString& aElementVi
auto pNode = rParser.ParseExpression(aElementVisual);
OutputDevice& rDevice = GetDrawingArea()->get_ref_device();
+ rDevice.Push(PushFlags::MAPMODE);
+ rDevice.SetMapMode( MapMode(MapUnit::Map100thMM) );
pNode->Prepare(maFormat, *mpDocShell, 0);
pNode->SetSize(Fraction(10,8));
@@ -843,6 +845,8 @@ void SmElementsControl::addElement(SmParser &rParser, const OUString& aElementVi
}
maElementList.push_back(std::make_unique<SmElement>(std::move(pNode), aElementSource, aHelpText));
+
+ rDevice.Pop();
}
void SmElementsControl::setElementSetId(const char* pSetId)
More information about the Libreoffice-commits
mailing list