mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
do not compare variable to 0 in QRasterPaintEngine::clip()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
1ab0bcee23
commit
cc91ebf056
1 changed files with 1 additions and 1 deletions
|
@ -906,7 +906,7 @@ void QRasterPaintEngine::clip(const QVectorPath &path, Qt::ClipOperation op)
|
||||||
// intersect with, in which case we simplify the operation to
|
// intersect with, in which case we simplify the operation to
|
||||||
// a replace...
|
// a replace...
|
||||||
Qt::ClipOperation isectOp = Qt::IntersectClip;
|
Qt::ClipOperation isectOp = Qt::IntersectClip;
|
||||||
if (base == 0)
|
if (!base)
|
||||||
isectOp = Qt::ReplaceClip;
|
isectOp = Qt::ReplaceClip;
|
||||||
|
|
||||||
QClipData *newClip = new QClipData(d->rasterBuffer->height());
|
QClipData *newClip = new QClipData(d->rasterBuffer->height());
|
||||||
|
|
Loading…
Add table
Reference in a new issue