Commit 6b75ccad authored by Tobias Koenig's avatar Tobias Koenig
Browse files

A new QSize is invalid, not null, my fault :}

svn path=/trunk/KDE/kdeedu/marble/; revision=716226
parent 2c4a7835
...@@ -56,13 +56,9 @@ class VisiblePlaceMark ...@@ -56,13 +56,9 @@ class VisiblePlaceMark
} }
const QSize& symbolSize() const const QSize& symbolSize() const
{ {
// FIXME: tokoe: In some cases we do get an uninitialized m_symbolSize. Why? if ( !m_symbolSize.isValid() )
// if ( m_symbolSize.isNull() ) m_symbolSize = m_modelIndex.data( PlaceMarkModel::SymbolSizeRole ).toSize();
// { return m_symbolSize;
m_symbolSize = m_modelIndex.data( PlaceMarkModel::SymbolSizeRole ).toSize();
return m_symbolSize;
// }
} }
const int symbolIndex() const const int symbolIndex() const
{ {
...@@ -97,8 +93,7 @@ class VisiblePlaceMark ...@@ -97,8 +93,7 @@ class VisiblePlaceMark
}; };
VisiblePlaceMark::VisiblePlaceMark() VisiblePlaceMark::VisiblePlaceMark()
: m_symbolIndex( 0 ), : m_symbolIndex( 0 )
m_symbolSize( QSize( 0, 0 ) )
{ {
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment