[Libreoffice-commits] core.git: svx/source
Tor Lillqvist
tml at collabora.com
Tue Dec 15 23:14:18 PST 2015
svx/source/sdr/overlay/overlayselection.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit ec8bc265050d86a749140c353360a78cce4e3fce
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Dec 16 09:12:55 2015 +0200
tdf#96257: Silly work-around to produce same result on OpenGL and non-OpenGL
For likely separate reasons, neither the non-OpenGL nor the OpenGL
code path produces what we actually want here (a line drawn in
'invert' mode if white is used, as happens on X11). In the non-OpenGL
case we get a black line, in the OpenGL case a white one. So let's use
grey and at least get the same effect in both cases.
Change-Id: Ifb587c6b46adb05e334a18add74352663cf7db9e
diff --git a/svx/source/sdr/overlay/overlayselection.cxx b/svx/source/sdr/overlay/overlayselection.cxx
index bab9366..941df12 100644
--- a/svx/source/sdr/overlay/overlayselection.cxx
+++ b/svx/source/sdr/overlay/overlayselection.cxx
@@ -107,7 +107,16 @@ namespace sdr
if(bInvert)
{
// force color to white for invert to get a full invert
+#ifdef WNT
+ // tdf#96257: For likely separate reasons, neither the non-OpenGL nor the OpenGL
+ // code path produces what we actually want here (a line drawn in 'invert' mode
+ // if white is used, as happens on X11). In the non-OpenGL case we get a black
+ // line, in the OpenGL case a white one. So let's use grey and at least get the
+ // same on both.
+ aRGBColor = basegfx::BColor(0.5, 0.5, 0.5);
+#else
aRGBColor = basegfx::BColor(1.0, 1.0, 1.0);
+#endif
}
for(sal_uInt32 a(0);a < nCount; a++)
More information about the Libreoffice-commits
mailing list