@@ -3049,6 +3049,7 @@ QgsPalLabeling::QgsPalLabeling()
3049
3049
mShowingCandidates = false ;
3050
3050
mShowingShadowRects = false ;
3051
3051
mShowingAllLabels = false ;
3052
+ mShowingPartialsLabels = p.getShowPartial ();
3052
3053
3053
3054
mLabelSearchTree = new QgsLabelSearchTree ();
3054
3055
}
@@ -3444,6 +3445,8 @@ void QgsPalLabeling::init( QgsMapRenderer* mr )
3444
3445
mPal ->setLineP ( mCandLine );
3445
3446
mPal ->setPolyP ( mCandPolygon );
3446
3447
3448
+ mPal ->setShowPartial ( mShowingPartialsLabels );
3449
+
3447
3450
clearActiveLayers (); // free any previous QgsDataDefined objects
3448
3451
mActiveDiagramLayers .clear ();
3449
3452
}
@@ -4812,6 +4815,8 @@ void QgsPalLabeling::loadEngineSettings()
4812
4815
" PAL" , " /ShowingShadowRects" , false , &saved );
4813
4816
mShowingAllLabels = QgsProject::instance ()->readBoolEntry (
4814
4817
" PAL" , " /ShowingAllLabels" , false , &saved );
4818
+ mShowingPartialsLabels = QgsProject::instance ()->readBoolEntry (
4819
+ " PAL" , " /ShowingPartialsLabels" , p.getShowPartial (), &saved );
4815
4820
mSavedWithProject = saved;
4816
4821
}
4817
4822
@@ -4824,6 +4829,7 @@ void QgsPalLabeling::saveEngineSettings()
4824
4829
QgsProject::instance ()->writeEntry ( " PAL" , " /ShowingCandidates" , mShowingCandidates );
4825
4830
QgsProject::instance ()->writeEntry ( " PAL" , " /ShowingShadowRects" , mShowingShadowRects );
4826
4831
QgsProject::instance ()->writeEntry ( " PAL" , " /ShowingAllLabels" , mShowingAllLabels );
4832
+ QgsProject::instance ()->writeEntry ( " PAL" , " /ShowingPartialsLabels" , mShowingPartialsLabels );
4827
4833
mSavedWithProject = true ;
4828
4834
}
4829
4835
@@ -4836,6 +4842,7 @@ void QgsPalLabeling::clearEngineSettings()
4836
4842
QgsProject::instance ()->removeEntry ( " PAL" , " /ShowingCandidates" );
4837
4843
QgsProject::instance ()->removeEntry ( " PAL" , " /ShowingShadowRects" );
4838
4844
QgsProject::instance ()->removeEntry ( " PAL" , " /ShowingAllLabels" );
4845
+ QgsProject::instance ()->removeEntry ( " PAL" , " /ShowingPartialsLabels" );
4839
4846
mSavedWithProject = false ;
4840
4847
}
4841
4848
@@ -4845,5 +4852,6 @@ QgsLabelingEngineInterface* QgsPalLabeling::clone()
4845
4852
lbl->mShowingAllLabels = mShowingAllLabels ;
4846
4853
lbl->mShowingCandidates = mShowingCandidates ;
4847
4854
lbl->mShowingShadowRects = mShowingShadowRects ;
4855
+ lbl->mShowingPartialsLabels = mShowingPartialsLabels ;
4848
4856
return lbl;
4849
4857
}
0 commit comments