[Marble-commits] KDE/kdeedu/marble/src/lib/graphicsview
Dennis Nienhüser
earthwings at gentoo.org
Fri Aug 27 14:35:50 CEST 2010
SVN commit 1168789 by nienhueser:
Only warn about invalid parent size if a parent was set
M +4 -3 ScreenGraphicsItem_p.h
--- trunk/KDE/kdeedu/marble/src/lib/graphicsview/ScreenGraphicsItem_p.h #1168788:1168789
@@ -12,13 +12,12 @@
#define MARBLE_SCREENGRAPHICSITEMPRIVATE_H
#include "MarbleGraphicsItem_p.h"
+#include "MarbleDebug.h"
#include "GeoGraphicsItem.h"
#include "ScreenGraphicsItem.h"
#include "ViewportParams.h"
-#include <QtCore/QDebug>
-
namespace Marble
{
@@ -51,7 +50,9 @@
QPointF positivePosition() const
{
if ( !m_parentSize.isValid() ) {
- qDebug() << "Invalid parent size";
+ if ( m_parent ) {
+ mDebug() << "Invalid parent size";
+ }
return m_position;
}
QPointF position;
More information about the Marble-commits
mailing list