Skip to content

Commit

Permalink
If no section is selected, add new sections to report itself
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.