GridCtrl: Fixed compilation issue (GCC, Clang)

git-svn-id: svn://ultimatepp.org/upp/trunk@4444 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2012-01-19 18:16:40 +00:00
parent 37aa7419b4
commit 2d991cb03f

View file

@ -296,7 +296,7 @@ GridCtrl::ItemRect& GridCtrl::ItemRect::NoEditable()
Value GridCtrl::ItemRect::ExtractValue(int r, int c) const
{
const Value& v = (*items)[r][c].val;
return IsType<AttrText>(v) ? ValueTo<AttrText>(v).text : v;
return IsType<AttrText>(v) ? Value(ValueTo<AttrText>(v).text) : v;
}
END_UPP_NAMESPACE