Fix type of member variable in wxGenericColourDialog

Variable to hold the size should be of type wxSize, not wxPoint.
This commit is contained in:
Artur Wieczorek 2015-10-24 11:57:30 +02:00
parent 7399fb3428
commit 3dc013920b
2 changed files with 2 additions and 3 deletions

View File

@ -75,7 +75,7 @@ protected:
wxRect m_singleCustomColourRect;
// Size of each colour rectangle
wxPoint m_smallRectangleSize;
wxSize m_smallRectangleSize;
// Grid spacing (between rectangles)
int m_gridSpacing;

View File

@ -207,8 +207,7 @@ void wxGenericColourDialog::CalculateMeasurements()
// For single customizable colour
const wxSize customRectangleSize(40, 40);
m_smallRectangleSize.x = 18;
m_smallRectangleSize.y = 14;
m_smallRectangleSize.Set(18, 14);
m_gridSpacing = 6;
m_sectionSpacing = 15;