[marble] [Bug 431466] New: GeoPainter::regionFromRect() uses centerPosition argument as top-left point instead

Johannes Zarl-Zierl bugzilla_noreply at kde.org
Mon Jan 11 22:16:09 GMT 2021


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-bugs at kde.org
          Reporter: johannes at 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 the assignee for the bug.


More information about the Marble-bugs mailing list