Ticket #49427: patch-ipecanvas-ipecanvas_qt.cpp.diff

File patch-ipecanvas-ipecanvas_qt.cpp.diff, 415 bytes (added by m7.thon@…, 9 years ago)
  • ipecanvas/ipecanvas_qt.cpp

    old new  
    239239void Canvas::tabletEvent(QTabletEvent *ev)
    240240{
    241241  Vector globalPos(ev->hiResGlobalX(), ev->hiResGlobalY());
    242   QPointF hiPos = ev->posF();
     242  QPointF hiPos = ev->hiResGlobalPos() - (ev->globalPos() - ev->pos());
    243243  ev->accept();
    244244
    245245  switch (ev->type()) {