https://bugs.kde.org/show_bug.cgi?id=431466

            Bug ID: 431466
           Summary: GeoPainter::regionFromRect() uses centerPosition
                    argument as top-left point instead
           Product: marble
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-b...@kde.org
          Reporter: johan...@zarl-zierl.at
  Target Milestone: ---

SUMMARY
GeoPainter::regionFromRect() is advertised as parameter-compatible with
GeoPainter::drawRect(). However, the resulting region is not centered around
the centerPoint, but rather uses it as top-left corner for the resulting
QRegion.

STEPS TO REPRODUCE
1. Use drawRect to render a non-geoprojected rectangle
2. Use regionFromRect with the same parameters to create a QRegion
3. Draw the resulting region using drawRect in screen coordinates

OBSERVED RESULT
The rectangle rendered in step 3 is centered around the bottom-right corner of
the rectangle rendered in step 1.

EXPECTED RESULT
Both rectangles should overlap around the same center.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to