ref #6216 Pre-select color in ColorDialog
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / vocabulary / PresenceAbsenceTermDetailElement.java
index 0389233aabdbf48379594e55ec25428328b52715..3515b23cab37a35cfc65ad34b0a121fd2138ed27 100644 (file)
@@ -92,6 +92,9 @@ public class PresenceAbsenceTermDetailElement extends DefinedTermDetailElement<P
     @Override
     public void mouseUp(MouseEvent e) {
         ColorDialog dialog = new ColorDialog(AbstractUtility.getShell());
+        if(color!=null){
+            dialog.setRGB(color.getRGB());
+        }
         RGB rgb = dialog.open();
         if(rgb!=null){
             if(color!=null){