From ca5ed24ff0324f3036b5d871129c14eebaa04df9 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 16 Nov 2008 16:05:00 +0000 Subject: [PATCH] idc.py: SetColor() now updated the colours properly. Thanks to google at simon.user.lysator.liu.se for the report. --- python/idc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/idc.py b/python/idc.py index 605d502..37b9d16 100644 --- a/python/idc.py +++ b/python/idc.py @@ -6893,7 +6893,7 @@ def SetColor(ea, what, color): func = idaapi.get_func(ea) if func: func.color = color - return True + return bool(idaapi.update_func(func)) else: return False @@ -6901,7 +6901,7 @@ def SetColor(ea, what, color): seg = idaapi.getseg(ea) if seg: seg.color = color - return True + return bool(seg.update()) else: return False