Commit d084641c authored by Tobias Deiminger's avatar Tobias Deiminger

Fix narrowing conversion in LineAnnotationWidget::endStyleIcon

Summary:
Windows MSVC Qt5.11 build fails:
```
conversion from 'initializer list' to 'QSizeF' requires a narrowing conversion
```

Pass QSize, and let QSizeF Ctor `QSizeF(const QSize &)` do the conversion.

Test Plan: - build on Windows MSVC

Reviewers: aacid

Reviewed By: aacid

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D21543
parent 1b89f220
......@@ -27,6 +27,7 @@
#include <QList>
#include <QMimeDatabase>
#include <QPair>
#include <QSize>
#include <KFormat>
#include "core/document.h"
......@@ -619,7 +620,7 @@ QIcon LineAnnotationWidget::endStyleIcon( Okular::LineAnnotation::TermStyle endS
prototype.style().setColor( lineColor );
prototype.style().setLineStyle( Okular::Annotation::LineStyle::Solid );
prototype.setBoundingRectangle( { 0, 0, 1, 1 } );
LineAnnotPainter linepainter { &prototype, { iconSize, iconSize }, 1, QTransform() };
LineAnnotPainter linepainter { &prototype, QSize { iconSize, iconSize }, 1, QTransform() };
linepainter.draw( image );
return QIcon( QPixmap::fromImage( image ) );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment