From 9416e00abee5a039d325ed8f22e48fccbce49a5e Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 27 Sep 2017 22:17:45 +0200 Subject: [PATCH] No real changes, just enclosed macro arguments in parentheses. I --- include/wx/propgrid/propgriddefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/propgrid/propgriddefs.h b/include/wx/propgrid/propgriddefs.h index c3da720d0f..5dcc6cd973 100644 --- a/include/wx/propgrid/propgriddefs.h +++ b/include/wx/propgrid/propgriddefs.h @@ -181,7 +181,7 @@ #endif // Use this macro to generate standard custom image height from -#define wxPG_STD_CUST_IMAGE_HEIGHT(LINEHEIGHT) (LINEHEIGHT-3) +#define wxPG_STD_CUST_IMAGE_HEIGHT(LINEHEIGHT) ((LINEHEIGHT)-3) // Undefine wxPG_ICON_WIDTH to use supplied xpm bitmaps instead // (for tree buttons) @@ -243,7 +243,7 @@ class wxPGValidationInfo; #define wxPG_COLOUR_BLACK (*wxBLACK) // Convert Red, Green and Blue to a single 32-bit value. -#define wxPG_COLOUR(R,G,B) ((wxUint32)(R+(G<<8)+(B<<16))) +#define wxPG_COLOUR(R,G,B) ((wxUint32)((R)+((G)<<8)+((B)<<16))) // If property is supposed to have custom-painted image, then returning