diff --git a/src/GUI/CanvasWidget.cxx b/src/GUI/CanvasWidget.cxx index 8c8ea3158..18bee716d 100644 --- a/src/GUI/CanvasWidget.cxx +++ b/src/GUI/CanvasWidget.cxx @@ -94,6 +94,14 @@ CanvasWidget::~CanvasWidget() false ); } +// Old versions of PUI are missing this defines... +#ifndef PU_SCROLL_UP_BUTTON +# define PU_SCROLL_UP_BUTTON 3 +#endif +#ifndef PU_SCROLL_DOWN_BUTTON +# define PU_SCROLL_DOWN_BUTTON 4 +#endif + //------------------------------------------------------------------------------ void CanvasWidget::doHit(int button, int updown, int x, int y) {