Commit 74ffea88 authored by David Jarvie's avatar David Jarvie
Browse files

Fix value shown in debug for invalid resource ID

parent 780a97fb
......@@ -41,7 +41,7 @@ bool EventId::operator==(const EventId& other) const
ResourceId EventId::resourceDisplayId() const
{
return mResourceId & ~ResourceType::IdFlag;
return (mResourceId > 0) ? (mResourceId & ~ResourceType::IdFlag) : mResourceId;
}
QString EventId::extractIDs(const QString& resourceEventId, QString& eventId)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment