DF-5469 Fixed Virtual coordinates, added ClearLine check