Fix the color picker recent colors box on OS X

SetBitmap triggers a size event, which results in UpdateBitmap being
called again. For some reason, rather than being an infinite loop this
just resulted in the bitmap never being set.
This commit is contained in:
Thomas Goyne 2013-12-11 10:14:55 -08:00
parent 5b7b5811f1
commit 5493c025bc
1 changed files with 5 additions and 1 deletions

View File

@ -291,7 +291,11 @@ class ColorPickerRecent : public wxStaticBitmap {
}
}
SetBitmap(background);
{
wxEventBlocker blocker(this);
SetBitmap(background);
}
Refresh(false);
}