From 4905f1c8ab0291be80f5546177318cba266e1633 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 13 Oct 2013 21:54:36 +0200 Subject: [PATCH] make testing empty cells against an empty string yield true --- apps/opencs/model/filter/textnode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/opencs/model/filter/textnode.cpp b/apps/opencs/model/filter/textnode.cpp index e335f7ea72..7d1a4845f6 100644 --- a/apps/opencs/model/filter/textnode.cpp +++ b/apps/opencs/model/filter/textnode.cpp @@ -49,6 +49,8 @@ bool CSMFilter::TextNode::test (const CSMWorld::IdTable& table, int row, { string = data.toBool() ? "true" : "false"; } + else if (mText.empty() && !data.isValid()) + return true; else return false;