anchor.diff:     begin
       Blky.GetBlkByID(Self.fproperties.Useky[i], Blk);
       glob := Blk.GetGlobalSettings();
  +
  +    if ((Blk as TBlkUsek).Stav.Stav = TUsekStav.disabled) then
  +      bariery.Add(Self.JCBariera(_JCB_BLOK_DISABLED, Blk, Blk.id));
   
       // obsazenost
       if ((i <> Self.fproperties.Useky.Count-1) or (Self.fproperties.TypCesty <> TJCType.posun)) then
  
positive.code:     Blky.GetBlkByID(odvratZaver.Blok, Blk);
      glob := Blk.GetGlobalSettings();
  
      // kontrola koncove polohy:
      if ((Integer((Blk as TBlkVyhybka).poloha) < 0) or (Integer((Blk as TBlkVyhybka).poloha) > 1)) then
        bariery.Add(Self.JCBariera(_JCB_ODVRAT_KONC_POLOHA, blk, odvratZaver.Blok));
  
      // kontrola vyluky vyhybky:
      if ((Blk as TBlkVyhybka).Vyluka <> '') then
  
negative.code:           bariery.Add(Self.JCBariera(_JCB_USEK_OBSAZENO, Blk2, Blk2.id));
         end;
       end;
     end;
  
    // kontrola trati
    if (Self.fproperties.Trat > -1) then
     begin
      Blky.GetBlkByID(Self.fproperties.Trat, Blk);
      glob := Blk.GetGlobalSettings();
  
      if ((Blk as TBlkTrat).stav.smer = TTratSmer.disabled) then
        bariery.Add(Self.JCBariera(_JCB_BLOK_DISABLED, Blk, Blk.id));
  
      cont := true;
      if ((blk as TBlkTrat).ZAK) then
  