From 178152f604aed37df703336344ff334e6d0fd244 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Thu, 30 Sep 2010 23:54:15 +0000 Subject: fixed linux build, dkaparis: _WIN32_WINNT 0x500 -- version 0.3.13 release git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@159 1a98c847-1fd6-4fd8-948a-caf3550aa51b --- ui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index 800bbfdf0..d17c208f9 100644 --- a/ui.cpp +++ b/ui.cpp @@ -109,6 +109,8 @@ void SetItemTextColour(wxListCtrl* listCtrl, int nIndex, const wxColour& colour) // so don't want to set it unless it's different. Default colour has // alpha 0 transparent, so our colours don't match using operator==. wxColour c1 = listCtrl->GetItemTextColour(nIndex); + if (!c1.IsOk()) + c1 = wxColour(0,0,0); if (colour.Red() != c1.Red() || colour.Green() != c1.Green() || colour.Blue() != c1.Blue()) listCtrl->SetItemTextColour(nIndex, colour); } -- cgit v1.2.3