[Marble-bugs] [Bug 271795] New: MarbleClock initialized with invalid QDateTime
jaimes at optech.ca
jaimes at optech.ca
Tue Apr 26 19:05:46 CEST 2011
https://bugs.kde.org/show_bug.cgi?id=271795
Summary: MarbleClock initialized with invalid QDateTime
Product: marble
Version: unspecified
Platform: unspecified
OS/Version: All
Status: UNCONFIRMED
Severity: minor
Priority: NOR
Component: general
AssignedTo: marble-bugs at kde.org
ReportedBy: jaimes at optech.ca
Version: unspecified
OS: All
The MarbleClock class modifies its m_datetime variable on a timer but this
variable is not initialized to a proper value on construction.
In the marble application this is not a problem because somewhere this variable
is set with a call to MarbleClock::setDateTime().
However, on a marblewidget based application if the same isn't done then this
causes odd behaviour. For instance the stars background will jump around
randomly because MarbleClock reports random times (Observed on WinXP with Qt
4.7.1).
Suggest initializing m_datetime variable to the current date time or
documenting the fact that it must be set explicitly.
Reproducible: Always
Steps to Reproduce:
Create a basic marblewidget application from any of the tutorials. Zoom out to
see the stars and watch them jump around randomly when the map is repainted.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Marble-bugs
mailing list