From 40b83111cb1f476e11fe30b25f1fdeb375f8fbfc Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 24 Jun 2021 11:57:03 +0200 Subject: [PATCH] SEBSERV-58 fixed point 3 --- .../java/ch/ethz/seb/sebserver/gui/widget/ColorSelection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/widget/ColorSelection.java b/src/main/java/ch/ethz/seb/sebserver/gui/widget/ColorSelection.java index 0d3e3974..d49479e6 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/widget/ColorSelection.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/widget/ColorSelection.java @@ -131,6 +131,7 @@ public final class ColorSelection extends Composite implements Selection { private void addColorSelection(final Event event) { final Locale locale = RWT.getLocale(); RWT.setLocale(this.i18nSupport.getUsersLanguageLocale()); + this.colorDialog.setRGB(this.selection); this.colorDialog.open(code -> { if (code == SWT.CANCEL) { return; @@ -142,6 +143,7 @@ public final class ColorSelection extends Composite implements Selection { this.listener.handleEvent(event); } }); + RWT.setLocale(locale); }