fix #6550 Discard page change event if no current page is present
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 4 Apr 2017 08:31:23 +0000 (10:31 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 4 Apr 2017 08:31:23 +0000 (10:31 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/MultiPageTaxonEditor.java

index 7241f84ffbdc77c2d2f34bb212e65229b4d9f0d4..e427b39e12a1fa99bdc71fb2cfc90acc1eaa844d 100644 (file)
@@ -122,6 +122,17 @@ IDirtyMarkable, IPartContentHasDetails, ISecuredEditor, IPartContentHasMedia {
         }
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    protected void pageChange(int newPageIndex) {
+        if(getCurrentPage()==-1){
+            return;
+        }
+        super.pageChange(newPageIndex);
+    }
+
     /** {@inheritDoc} */
     @Override
     public void doSave(IProgressMonitor monitor) {