- if (lyxerr.debugging(Debug::GUI)) {
- if (!Lgb_bug_find_hack)
- lyxerr << "rectangle not called from "
- "workarea::workhandler\n";
- lyxerr << "Painter drawable: "
- << owner.getPixmap() << endl;
- }
-
- XDrawRectangle(display, owner.getPixmap(),
- lyxColorHandler->getGCLinepars(ls, lw, col),
+ XDrawRectangle(display(), owner.getPixmap(),
+ lyxColorHandler->getGCLinepars(ls, lw, col),