mirror of https://github.com/odrling/Aegisub
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:
parent
5b7b5811f1
commit
5493c025bc
|
@ -291,7 +291,11 @@ class ColorPickerRecent : public wxStaticBitmap {
|
|||
}
|
||||
}
|
||||
|
||||
SetBitmap(background);
|
||||
{
|
||||
wxEventBlocker blocker(this);
|
||||
SetBitmap(background);
|
||||
}
|
||||
|
||||
Refresh(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue