diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index 9f7509312b..188f81b2cf 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -110,7 +110,13 @@ Canvas::zoomed () } static bool debug_render = false; + +#ifndef NDEBUG +#ifdef CANVAS_DEBUG +#undef CANVAS_DEBUG #define CANVAS_DEBUG +#endif +#endif /** Render an area of the canvas. * @param area Area in window coordinates.