File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,13 @@ namespace pal
377377 return feature->layer ()->name ();
378378 }
379379
380+ void LabelPosition::setConflictsWithObstacle ( bool conflicts )
381+ {
382+ mHasObstacleConflict = conflicts;
383+ if ( nextPart )
384+ nextPart->setConflictsWithObstacle ( conflicts );
385+ }
386+
380387 bool LabelPosition::costShrink ( void *l, void *r )
381388 {
382389 return (( LabelPosition* ) l )->mCost < (( LabelPosition* ) r )->mCost ;
Original file line number Diff line number Diff line change @@ -178,9 +178,10 @@ namespace pal
178178
179179 /* * Sets whether the position is marked as conflicting with an obstacle feature.
180180 * @param conflicts set to true to mark candidate as being in conflict
181+ * @note This method applies to all label parts for the candidate position.
181182 * @see conflictsWithObstacle
182183 */
183- void setConflictsWithObstacle ( bool conflicts ) { mHasObstacleConflict = conflicts; }
184+ void setConflictsWithObstacle ( bool conflicts );
184185
185186 /* * Returns whether the position is marked as conflicting with an obstacle feature.
186187 * @see setConflictsWithObstacle
You can’t perform that action at this time.
0 commit comments