Using the small canvaspreview to pan the patchbay resulted in an
exception when panning out of bounds of the window. In this case Carla
tried to create a QPoint with two floats, for which qt has no
constructor. This results in the panning to hang, as the event is
"handled" with an exception.
Casting these two values to int lets qt create the QPoint
and with that properly set the new cursor position, so panning can be
done in all edges again, without having to be precise with the cursor
positioning.
This is probably a left-over from a python2 to python3 migration, as
python did integer divison by default.
Fixes this error, which would occur after `setPrecision` had been called
with a non-integer value.
```
Traceback (most recent call last):
File "/usr/share/carla/carla_host.py", line 1442, in slot_handlePluginAddedCallback
pitem = self.ui.listWidget.createItem(pluginId, self.fSavedSettings[CARLA_KEY_MAIN_CLASSIC_SKIN])
File "/usr/share/carla/widgets/racklistwidget.py", line 241, in createItem
return RackListItem(self, pluginId, useClassicSkin)
File "/usr/share/carla/widgets/racklistwidget.py", line 86, in __init__
self.recreateWidget(firstInit = True)
File "/usr/share/carla/widgets/racklistwidget.py", line 176, in recreateWidget
self.fWidget = createPluginSlot(self.fParent, self.host, self.fPluginId, self.fOptions)
File "/usr/share/carla/carla_skin.py", line 2090, in createPluginSlot
return PluginSlot_Default(parent, host, pluginId, skinColor, skinStyle)
File "/usr/share/carla/carla_skin.py", line 1766, in __init__
self.ready()
File "/usr/share/carla/carla_skin.py", line 642, in ready
paramWidget.setValue(self.host.get_internal_parameter_value(self.fPluginId, paramIndex))
File "/usr/share/carla/widgets/scalabledial.py", line 282, in setValue
QDial.setValue(self, qtValue)
TypeError: setValue(self, int): argument 2 has unexpected type 'float'
Error mapping plugin to canvas client: 16 Step Sequencer
```
On some quirky Windows VST2 (old SWAM instruments) or old Linux ones (InsertPizHere plugins), a NaN parameter value would be sent.
This throws an error in the frontend code and prevent carla from creating the corresponding rack.
We workaround that by just returning early from PixmapDialsetValue() if the value is a NaN
Fixes#1143