Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-18 22:11:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-18 22:11:51 +0400
commita5b5f5d3fbddf6ef8b42b22209bdb70eca0aeaef (patch)
tree67c3265a9500847ade534c4c2f54bfc4981ce520 /source/blender/editors/interface/interface_ops.c
parent63f143a3ccf1a411951730f85efbdd84d2076a12 (diff)
code cleanup: use BLI rect functions for interface button and block code.
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r--source/blender/editors/interface/interface_ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index 98df612a6af..53ff198b44d 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -729,10 +729,7 @@ static int ui_editsource_uibut_match(uiBut *but_a, uiBut *but_b)
/* this just needs to be a 'good-enough' comparison so we can know beyond
* reasonable doubt that these buttons are the same between redraws.
* if this fails it only means edit-source fails - campbell */
- if ((but_a->rect.xmin == but_b->rect.xmin) &&
- (but_a->rect.xmax == but_b->rect.xmax) &&
- (but_a->rect.ymin == but_b->rect.ymin) &&
- (but_a->rect.ymax == but_b->rect.ymax) &&
+ if (BLI_rctf_compare(&but_a->rect, &but_b->rect, FLT_EPSILON) &&
(but_a->type == but_b->type) &&
(but_a->rnaprop == but_b->rnaprop) &&
(but_a->optype == but_b->optype) &&