[Libreoffice-commits] core.git: vcl/qt5
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Sep 5 07:00:13 UTC 2018
vcl/qt5/Qt5Frame.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d66f0c88a95adb54e54ca3d5fb291c7b6661738f
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Sep 5 08:58:27 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Sep 5 08:58:27 2018 +0200
-Werror,-Wunused-result
(And <https://doc.qt.io/archives/qt-4.8/qregion.html#united> indeed says:
"Returns a region which is the union of this region and r.")
Change-Id: Icc18376e89167029823f64a01236a4fccaf7ea3a
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index e90ab1119a93..018698f3b781 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -807,7 +807,7 @@ void Qt5Frame::BeginSetClipRegion(sal_uLong)
void Qt5Frame::UnionClipRegion(long nX, long nY, long nWidth, long nHeight)
{
- m_aRegion.united(QRegion(nX, nY, nWidth, nHeight));
+ m_aRegion = m_aRegion.united(QRegion(nX, nY, nWidth, nHeight));
}
void Qt5Frame::EndSetClipRegion() { m_bNullRegion = false; }
More information about the Libreoffice-commits
mailing list