>> > +            GdipMeasureString(graphics, string, length, font, &bounds, 
>> > format, &bounds, 0, 0);
>>
>> You probably shouldn't use the same GpRect* for both parameters there.
>
> I don't see any problem with that.

GdipMeasureString modifies the out parameter and reads the in
parameter as it goes, and it doesn't account for the possibility that
it is modifying its own input rectangle.


Reply via email to