Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ij/gui/StackWindow.java b/ij/gui/StackWindow.java
- index 751c5fd..226d90c 100644
- --- a/ij/gui/StackWindow.java
- +++ b/ij/gui/StackWindow.java
- @@ -328,4 +328,7 @@ public class StackWindow extends ImageWindow implements Runnable, AdjustmentList
- }
- }
- + public ScrollbarWithLabel getCSelector() {
- + return cSelector;
- + }
- }
- diff --git a/ij/plugin/Orthogonal_Views.java b/ij/plugin/Orthogonal_Views.java
- index c88f4f5..4fecca8 100644
- --- a/ij/plugin/Orthogonal_Views.java
- +++ b/ij/plugin/Orthogonal_Views.java
- @@ -136,9 +136,7 @@ public class Orthogonal_Views implements PlugIn, MouseListener, MouseMotionListe
- win.addWindowListener (this);
- win.addMouseWheelListener(this);
- win.addFocusListener(this);
- - Component[] c = win.getComponents();
- - //IJ.log(c[1].toString());
- - ((ScrollbarWithLabel) c[1]).addAdjustmentListener (this);
- + ((StackWindow) win).getCSelector().addAdjustmentListener(this);
- ImagePlus.addImageListener(this);
- Executer.addCommandListener(this);
- }
- @@ -570,8 +568,7 @@ public class Orthogonal_Views implements PlugIn, MouseListener, MouseMotionListe
- win.removeWindowListener(this);
- win.removeMouseWheelListener(this);
- win.removeFocusListener(this);
- - Component[] c = win.getComponents();
- - ((ScrollbarWithLabel) c[1]).removeAdjustmentListener (this);
- + ((StackWindow) win).getCSelector().removeAdjustmentListener(this);
- win.setResizable(true);
- instance = null;
- previousID = imp.getID();
Advertisement
Add Comment
Please, Sign In to add comment