Dispatcher behaves differently in 4.0?

I was using a small function in libreoffice 3.x to change the zoom setting for Writer, but when executing the same code in 4.0 it doesn’t actually change the zoom value, but it opens the zoom window. Is this a bug? Is there a simple fix? Below is a fragment of the code that I’m using.

(Windows XP)

dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Zoom.Value"
args1(0).Value = Magnification
args1(1).Name = "Zoom.ValueSet"
args1(1).Value = 28703
args1(2).Name = "Zoom.Type"
args1(2).Value = 0
dispatcher.executeDispatch(document, ".uno:Zoom", "", 0, args1())

Hi @pahmer,

I just pinged a dev and they said to file a bug :slight_smile: Please file a bug here and provide a list of steps that can reproduce your problem. The QA Team will be happy to help you track down this issue!

Please post a link to any bugs you file in a comment below using the format “fdo#123456”.

Thanks!