From 2d991cb03f9f930c8c461ca23f439361ea4aebab Mon Sep 17 00:00:00 2001 From: unodgs Date: Thu, 19 Jan 2012 18:16:40 +0000 Subject: [PATCH] GridCtrl: Fixed compilation issue (GCC, Clang) git-svn-id: svn://ultimatepp.org/upp/trunk@4444 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/GridCtrl/GridBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/GridCtrl/GridBase.cpp b/uppsrc/GridCtrl/GridBase.cpp index 220e276eb..7bf98fb92 100644 --- a/uppsrc/GridCtrl/GridBase.cpp +++ b/uppsrc/GridCtrl/GridBase.cpp @@ -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(v) ? ValueTo(v).text : v; + return IsType(v) ? Value(ValueTo(v).text) : v; } END_UPP_NAMESPACE