mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
*GridCtrl: Fixed searching AttrText fields
git-svn-id: svn://ultimatepp.org/upp/trunk@2576 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2a74663e7e
commit
341dbf7235
1 changed files with 11 additions and 1 deletions
|
|
@ -1585,7 +1585,17 @@ Value GridCtrl::GetConvertedColumn(int col, const Value &v) const
|
|||
Value GridCtrl::GetStdConvertedColumn(int col, const Value &v) const
|
||||
{
|
||||
Value val = GetConvertedColumn(col, v);
|
||||
return IsString(val) ? val : StdConvert().Format(val);//GetStdConvertedValue(val);
|
||||
if(IsString(val))
|
||||
{
|
||||
return val;
|
||||
}
|
||||
else if(IsType<AttrText>(val))
|
||||
{
|
||||
const AttrText& t = ValueTo<AttrText>(val);
|
||||
return t.text;
|
||||
}
|
||||
else
|
||||
return StdConvert().Format(val);//GetStdConvertedValue(val);
|
||||
}
|
||||
|
||||
String GridCtrl::GetString(Id id) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue