Skip to content
Permalink
Browse files

If no section is selected, add new sections to report itself

  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent c3f07f6 commit 3db9c010213c37d01c0eb33e3ed251ef5c7e0659
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/layout/qgsreportsectionmodel.cpp
@@ -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() );

0 comments on commit 3db9c01

Please sign in to comment.
You can’t perform that action at this time.