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
377
377
return feature->layer ()->name ();
378
378
}
379
379
380
+ void LabelPosition::setConflictsWithObstacle ( bool conflicts )
381
+ {
382
+ mHasObstacleConflict = conflicts;
383
+ if ( nextPart )
384
+ nextPart->setConflictsWithObstacle ( conflicts );
385
+ }
386
+
380
387
bool LabelPosition::costShrink ( void *l, void *r )
381
388
{
382
389
return (( LabelPosition* ) l )->mCost < (( LabelPosition* ) r )->mCost ;
Original file line number Diff line number Diff line change @@ -178,9 +178,10 @@ namespace pal
178
178
179
179
/* * Sets whether the position is marked as conflicting with an obstacle feature.
180
180
* @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.
181
182
* @see conflictsWithObstacle
182
183
*/
183
- void setConflictsWithObstacle ( bool conflicts ) { mHasObstacleConflict = conflicts; }
184
+ void setConflictsWithObstacle ( bool conflicts );
184
185
185
186
/* * Returns whether the position is marked as conflicting with an obstacle feature.
186
187
* @see setConflictsWithObstacle
You can’t perform that action at this time.
0 commit comments