TRect.Width, TRect.Height are wrong:

TRect.Width, TRect.Height are wrong:

For example:
LRect := Rect(0, 0, 2, 2);

LRect.Width is 3 because it counts from 0 to 2 but the result is 2 when running app.

Same to LRect.Height.


https://quality.embarcadero.com/browse/RSP-18868
https://quality.embarcadero.com/browse/RSP-18868

Comments

  1. Your expectation is wrong. Width is defined as End minus Start, so 2 ist the correct result. Look at a simple ruler.

    ReplyDelete

Post a Comment