Set textFrame Y value not working in release mode

Hi,

I am having problem of setting Y value of a textframe, it works well in debug mode but once the breakpoint is removed or the project is in release mode, it just doesn't work, Y of the text frame stays whatever it was originally.

Attached the code and the screenshot of the results. Please help!

Thanks!

Cloud

I have worked around it by adding the following piece of code under txtFrame2.Y = 300 and it worked, but still confused why I need to do this.

//Setting the font height to 55

port.FontHeight = 14;

port2.FontHeight = 7;

txtFrame2.X = 100;

txtFrame2.Y = 300;

if (txtFrame2.Y != 300)

txtFrame2.Y = 300;

Hello,


Is it occurring in latest version i.e Aspose.Slides 2.9.2.0 for .NET?