[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 1 13:02:57 UTC 2021
vcl/source/outdev/textline.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit cf5b3a3359856bbd36e4bb52cdfa66179583a711
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Aug 31 15:02:48 2021 +0300
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Fri Oct 1 15:02:23 2021 +0200
Stopgap workaround for misspelling wavy underline drawing bug on iOS
Explicity make the rectangle white before drawing the red wavy line.
Sure, this means that it looks bad if the document background colour
is not white. Better than how it looks currently, though, with the
rectangle containing the wavy underline ending up (for unknown
reasons) black. And most documents have a white background.
Change-Id: I92b2246bbdbd1404e4c48292c3610d1582a56163
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121370
Tested-by: Tor Lillqvist <tml at collabora.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122906
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index 7b1ca2dede0b..48654a94cb6e 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -1080,6 +1080,11 @@ void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, to
pVirtDev->SetOutputSizePixel( Size( nWordLength, nWaveHeight * 2 ), false );
pVirtDev->SetLineColor( GetLineColor() );
pVirtDev->SetBackground( Wallpaper( COL_TRANSPARENT ) );
+#ifdef IOS
+ // Stopgap workaround for some bug in the iOS-specific vcl code.
+ pVirtDev->SetFillColor( COL_WHITE );
+ pVirtDev->DrawRect( tools::Rectangle( 0, 0, pVirtDev->GetOutputSize().Width(), pVirtDev->GetOutputSize().Height() ) );
+#endif
pVirtDev->ImplDrawWaveLineBezier( 0, 0, nWordLength, 0, nWaveHeight, fOrientation, nLineWidth );
rLineCache.insert( pVirtDev->GetBitmapEx( Point( 0, 0 ), pVirtDev->GetOutputSize() ), GetLineColor(), nLineWidth, nWaveHeight, nWordLength, aWavylinebmp );
}
More information about the Libreoffice-commits
mailing list