0
Fixed

[W507] Regression from 2015.11upd2 to 2015.11upd6

Lübbe Onken 9 years ago updated by Roman 9 years ago 3

This construct was correctly marked with W507 in 2015.11upd2 but is no longer marked in 2015.11upd6


if xRight then
  TextOut(Round((YAchse.RectTitle.Right + YAchse.RectTitle.Left - TextExtent(sValue).cy) / 2),
          Round((YAchse.RectTitle.Bottom + YAchse.RectTitle.Top + TextExtent(sValue).cx) / 2), sValue)
else
  TextOut(Round((YAchse.RectTitle.Right + YAchse.RectTitle.Left - TextExtent(sValue).cy) / 2),
          Round((YAchse.RectTitle.Bottom + YAchse.RectTitle.Top + TextExtent(sValue).cx) / 2), sValue);

A somewhat simpler example is here. Same symptom:


if FRxMsg.Valid then
    Sleep(TIME_SLEEP_SHORT)
  else
    Sleep(TIME_SLEEP_SHORT);

would expect a W507.

Under review

Very strange. Thanks for reporting this!