[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Jan 16 16:02:06 PST 2015
sc/source/ui/view/gridwin4.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 3b70717f02d5f2f255de078bd277e8662884bfb0
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Jan 16 19:00:04 2015 -0500
Use 1/100mm map mode for rendering edit text objects.
Change-Id: I0c82088342085c1b7d9aa3c6009684bc58a9fd21
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 5e364c2..07a5d62 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -945,7 +945,9 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
aOutData.DrawStrings(true);
- // TODO : Edit texts don't get rendered at all. Fix this.
+ // Edit texts need 1/100mm map mode to be rendered correctly.
+ aNewMapMode.SetMapUnit(MAP_100TH_MM);
+ rDevice.SetMapMode(aNewMapMode);
aOutData.DrawEdit(true);
rDevice.SetMapMode(aOldMapMode);
More information about the Libreoffice-commits
mailing list