From f3b3f21d3ba0fd48bc265684817cb38a70adf84b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 25 Dec 2008 07:53:09 -0500 Subject: Bounds errors are verbose now and some unchecked conditions fixed as well --- sigmod/Map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sigmod/Map.cpp') diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp index bea4f227..667b5524 100644 --- a/sigmod/Map.cpp +++ b/sigmod/Map.cpp @@ -155,7 +155,7 @@ void Sigmod::Map::setName(const QString& name) void Sigmod::Map::setFlyWarp(const int flyWarp) { if ((flyWarp != -1) && !warpById(flyWarp)) - emit(error(bounds("flyWarp"))); + emit(error(bounds("flyWarp", flyWarp))); else CHECK(flyWarp); } @@ -168,7 +168,7 @@ void Sigmod::Map::setType(const Type type) void Sigmod::Map::setWidth(const int width) { if (width <= 0) - emit(error(bounds("width"))); + emit(error(bounds("width", 1, INT_MAX, width))); else CHECK(width); } @@ -176,7 +176,7 @@ void Sigmod::Map::setWidth(const int width) void Sigmod::Map::setHeight(const int height) { if (height <= 0) - emit(error(bounds("height"))); + emit(error(bounds("height", 1, INT_MAX, height))); else CHECK(height); } -- cgit