starmath/source/ElementsDockingWindow.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 3544c475c0fd77f720f0767293656eaa02427e5e Author: Caolán McNamara <[email protected]> AuthorDate: Wed Jan 29 16:09:19 2020 +0000 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> 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) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
