Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If no section is selected, add new sections to report itself
  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent c3f07f6 commit 3db9c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout/qgsreportsectionmodel.cpp
Expand Up @@ -237,7 +237,7 @@ void QgsReportSectionModel::addSection( const QModelIndex &parent, std::unique_p
{
QgsAbstractReportSection *parentSection = sectionForIndex( parent );
if ( !parentSection )
return;
parentSection = mReport;

beginInsertRows( parent, parentSection->childCount(), parentSection->childCount() );
parentSection->appendChild( section.release() );
Expand Down

0 comments on commit 3db9c01

Please sign in to comment.