aboutsummaryrefslogtreecommitdiffstats
path: root/src/qt5gtk2-style/qgtk2painter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt5gtk2-style/qgtk2painter.cpp')
-rw-r--r--src/qt5gtk2-style/qgtk2painter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/qt5gtk2-style/qgtk2painter.cpp b/src/qt5gtk2-style/qgtk2painter.cpp
index fc7ebca..6f44c34 100644
--- a/src/qt5gtk2-style/qgtk2painter.cpp
+++ b/src/qt5gtk2-style/qgtk2painter.cpp
@@ -1,6 +1,6 @@
/***************************************************************************
* Copyright (C) 2015 The Qt Company Ltd. *
- * Copyright (C) 2016-2022 Ilya Kotov, forkotov02@ya.ru *
+ * Copyright (C) 2016-2023 Ilya Kotov, forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -56,11 +56,10 @@ QPixmap QGtk2Painter::renderTheme(uchar *bdata, uchar *wdata, const QRect &rect)
if (m_hflipped || m_vflipped) {
return QPixmap::fromImage(converted.mirrored(m_hflipped, m_vflipped));
- } else {
- // on raster graphicssystem we need to do a copy here, because
- // we intend to deallocate the qimage bits shortly after...
- return QPixmap::fromImage(converted.copy());
}
+ // on raster graphicssystem we need to do a copy here, because
+ // we intend to deallocate the qimage bits shortly after...
+ return QPixmap::fromImage(converted.copy());
}
// This macro is responsible for painting any GtkStyle painting function onto a QPixmap