summaryrefslogtreecommitdiffstats
path: root/sigmod/Time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Time.cpp')
-rw-r--r--sigmod/Time.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigmod/Time.cpp b/sigmod/Time.cpp
index 32939e92..b4172405 100644
--- a/sigmod/Time.cpp
+++ b/sigmod/Time.cpp
@@ -83,16 +83,16 @@ void Sigmod::Time::setName(const QString& name)
void Sigmod::Time::setHour(const int hour)
{
- if (24 <= hour)
- emit(error(bounds("hour")));
+ if ((hour < 0) || (24 <= hour))
+ emit(error(bounds("hour", 0, 23, hour)));
else
CHECK(hour);
}
void Sigmod::Time::setMinute(const int minute)
{
- if (60 <= minute)
- emit(error(bounds("minute")));
+ if ((minute < 0) || (60 <= minute))
+ emit(error(bounds("minute", 0, 59, minute)));
else
CHECK(minute);
}