Hi,
For a personal project I'm trying to add the
advanced png export options as commandline args. I've got most of it
working, but am now getting blocked by a weird issue when trying to use 0
(zero) as an input value for an OPTION_TYPE_INT argument.
If
the value is zero, the argument doesn't get added to the options
VariantDict (I check this in inkscape-application.cpp around line 1500).
If i use any other int value it does get passed along.
The
reason this is causing me problems is, I add options like the the
antialiasing settings and those are based on zero-indexed enums, but
don't use 0 as a default. This means I can't just set default value to
zero in the InkFileExportCmd struct (as happens for margin ).
Hopefully
this makes sense to someone here. My background isn't cpp so I'm
probably missing something simple (although I did briefly go over the
glib source code as well lol). If I can get something working I'll
contribute of course.
Thanks for any help.
Regards,
Mac