SVN commit 515236 by danders: A resource isn't available if units==0 M +6 -0 kptresource.cc --- trunk/koffice/kplato/kptresource.cc #515235:515236 @@ -575,6 +575,9 @@ DateTime Resource::availableAfter(const DateTime &time, const DateTime limit, bool checkAppointments) const { DateTime t; + if (m_units == 0) { + return t; + } DateTime lmt = m_availableUntil; if (limit.isValid() && limit < lmt) { lmt = limit; @@ -602,6 +605,9 @@ DateTime Resource::availableBefore(const DateTime &time, const DateTime limit, bool checkAppointments) const { DateTime t; + if (m_units == 0) { + return t; + } DateTime lmt = m_availableFrom; if (limit.isValid() && limit > lmt) { lmt = limit;