diff options
author | João Abecasis <joao@abecasis.name> | 2009-10-07 09:58:04 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-10-07 10:44:42 (GMT) |
commit | 038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c (patch) | |
tree | 5f479a3dbf2254ab8e9992695ab005f98eccf884 /src | |
parent | e9e37393a4c1cfc43b5dca94a832d73cd009d73e (diff) | |
download | Qt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.zip Qt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.tar.gz Qt-038f3eef0f5a0d3012a1529fd4b768bbb9b8fb3c.tar.bz2 |
Fixing warnings on GCC... (I)
... by establishing a default behaviour for the switch statements that
follow.
Reviewed-by: Kim
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qdrawutil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawutil.cpp b/src/gui/painting/qdrawutil.cpp index c20d8d8..1182b9a 100644 --- a/src/gui/painting/qdrawutil.cpp +++ b/src/gui/painting/qdrawutil.cpp @@ -1147,8 +1147,8 @@ void qDrawBorderPixmap(QPainter *painter, const QRect &targetRect, const QMargin yTarget[rows - 1] = targetCenterBottom; yTarget[rows] = targetRect.top() + targetRect.height(); - qreal dx; - qreal dy; + qreal dx = targetCenterWidth; + qreal dy = targetCenterHeight; switch (rules.horizontal) { case Qt::StretchTile: |