Fix type of member variable in wxGenericColourDialog
Variable to hold the size should be of type wxSize, not wxPoint.
This commit is contained in:
parent
7399fb3428
commit
3dc013920b
@ -75,7 +75,7 @@ protected:
|
|||||||
wxRect m_singleCustomColourRect;
|
wxRect m_singleCustomColourRect;
|
||||||
|
|
||||||
// Size of each colour rectangle
|
// Size of each colour rectangle
|
||||||
wxPoint m_smallRectangleSize;
|
wxSize m_smallRectangleSize;
|
||||||
|
|
||||||
// Grid spacing (between rectangles)
|
// Grid spacing (between rectangles)
|
||||||
int m_gridSpacing;
|
int m_gridSpacing;
|
||||||
|
@ -207,8 +207,7 @@ void wxGenericColourDialog::CalculateMeasurements()
|
|||||||
// For single customizable colour
|
// For single customizable colour
|
||||||
const wxSize customRectangleSize(40, 40);
|
const wxSize customRectangleSize(40, 40);
|
||||||
|
|
||||||
m_smallRectangleSize.x = 18;
|
m_smallRectangleSize.Set(18, 14);
|
||||||
m_smallRectangleSize.y = 14;
|
|
||||||
|
|
||||||
m_gridSpacing = 6;
|
m_gridSpacing = 6;
|
||||||
m_sectionSpacing = 15;
|
m_sectionSpacing = 15;
|
||||||
|
Loading…
Reference in New Issue
Block a user