fixed unitialized memory read causing unexpected behavior in thumbnails

This commit is contained in:
csoler 2020-08-29 19:45:35 +02:00
parent ca49232ff1
commit 9652654b6a

View File

@ -60,7 +60,7 @@ class ChannelPostDelegate: public QAbstractItemDelegate
Q_OBJECT Q_OBJECT
public: public:
ChannelPostDelegate(QObject *parent=0) : QAbstractItemDelegate(parent), mZoom(1.0){} ChannelPostDelegate(QObject *parent=0) : QAbstractItemDelegate(parent), mZoom(1.0), mUseGrid(true){}
virtual ~ChannelPostDelegate(){} virtual ~ChannelPostDelegate(){}
void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const override; void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const override;