Refactor wxPropertyGrid::GenerateEditorTextCtr, cont.
Use Boolean expression instead of conditional statement to initialize Boolean value.
This commit is contained in:
@@ -1926,10 +1926,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the height is significantly higher, then use border, and fill the rect exactly.
|
// If the height is significantly higher, then use border, and fill the rect exactly.
|
||||||
bool hasSpecialSize = false;
|
const bool hasSpecialSize = (sz.y - m_lineHeight) > 5;
|
||||||
|
|
||||||
if ( (sz.y - m_lineHeight) > 5 )
|
|
||||||
hasSpecialSize = true;
|
|
||||||
|
|
||||||
wxWindow* ctrlParent = GetPanel();
|
wxWindow* ctrlParent = GetPanel();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user