Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Do not execute an empty edit

Solves bug 2034
  • Loading branch information...
commit 0dc48c469b014c7bf8c766f8867503bc722137a6 1 parent dfd25b9
authored June 30, 2010
6  plugins/net.bioclipse.cdk.jchempaint/src/net/bioclipse/cdk/jchempaint/business/JChemPaintManager.java
@@ -760,8 +760,10 @@ public void removeExplicitHydrogens()  {
760 760
                         atomsToRemove.add( RemoveAtom.remove( atom) );
761 761
                 }
762 762
             }
763  
-            relay.execute( CompositEdit.compose( atomsToRemove ) );
764  
-            updateView();
  763
+            if(!atomsToRemove.isEmpty()) {
  764
+                relay.execute( CompositEdit.compose( atomsToRemove ) );
  765
+                updateView();
  766
+            }
765 767
         } else {
766 768
             say("No opened JChemPaint editor");
767 769
         }

0 notes on commit 0dc48c4

Please sign in to comment.
Something went wrong with that request. Please try again.