diff --git a/cockatrice/src/tablezone.cpp b/cockatrice/src/tablezone.cpp index f2053af0..f56d16f9 100644 --- a/cockatrice/src/tablezone.cpp +++ b/cockatrice/src/tablezone.cpp @@ -179,12 +179,12 @@ QPoint TableZone::mapToGrid(const QPointF &mapPoint) const qDebug("UNTER grenze"); if (economicGrid) return QPoint( - x * 2 / CARD_WIDTH - (x / (2 * CARD_WIDTH)), + x * 2 / CARD_WIDTH - floor(x / (2 * CARD_WIDTH)), 3 ); else { return QPoint( - round((double) x / (1.5 * CARD_WIDTH)), + x / (1.5 * CARD_WIDTH), 3 ); }