From 705ee67265ca1028bba2adb143e2219f0c6aab54 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 27 Mar 2015 18:55:48 +0100 Subject: [PATCH] fixed hints getting mixed up with message text --- apps/opencs/model/tools/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/opencs/model/tools/search.cpp b/apps/opencs/model/tools/search.cpp index 1b7be6fbf..f37425ea8 100644 --- a/apps/opencs/model/tools/search.cpp +++ b/apps/opencs/model/tools/search.cpp @@ -27,7 +27,7 @@ void CSMTools::Search::searchTextCell (const CSMWorld::IdTableBase *model, message << text.mid (pos).toUtf8().data(); std::ostringstream hint; - message << "r: " << index.column() << " " << pos << " " << search.length(); + hint << "r: " << index.column() << " " << pos << " " << search.length(); messages.add (id, message.str(), hint.str()); @@ -54,7 +54,7 @@ void CSMTools::Search::searchRegExCell (const CSMWorld::IdTableBase *model, int length = mRegExp.matchedLength(); std::ostringstream hint; - message << "r: " << index.column() << " " << pos << " " << length; + hint << "r: " << index.column() << " " << pos << " " << length; messages.add (id, message.str(), hint.str()); @@ -79,7 +79,7 @@ void CSMTools::Search::searchRecordStateCell (const CSMWorld::IdTableBase *model message << id.getId() << " " << states.at (data); std::ostringstream hint; - message << "r: " << index.column(); + hint << "r: " << index.column(); messages.add (id, message.str(), hint.str()); }