summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-30 00:16:15 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-30 00:16:15 -0400
commit2f2478ddc2fec0195298debf5e241800df7fbf15 (patch)
treea98ea8c899033835cfce54d98111014575464cba
parentc6e36f66c45bab57e181331ef846adafe879258d (diff)
Check if the size is empty, (0,0) is still "not null"
-rw-r--r--sigmodr/widgets/mapeditor/EffectItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/widgets/mapeditor/EffectItem.cpp b/sigmodr/widgets/mapeditor/EffectItem.cpp
index 95bb69c1..900f5c9d 100644
--- a/sigmodr/widgets/mapeditor/EffectItem.cpp
+++ b/sigmodr/widgets/mapeditor/EffectItem.cpp
@@ -47,7 +47,7 @@ EffectItem::EffectItem(Sigmod::Map* map, MapEffect* effect, QGraphicsScene* pare
QRectF EffectItem::boundingRect() const
{
- if (m_size.isNull())
+ if (m_size.isEmpty())
{
QPainterPath path = m_effect->area();
if (path.isEmpty())