Inkscape UI can pass invalid values to Datamatrix extension
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
jazzynico | ||
inkscape (Debian) |
Fix Released
|
Unknown
|
|||
inkscape (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: inkscape
This bug in Inkscape's handling of the Datamatrix extension was reported in Debian: http://
* Go to Extensions-
* Select Rows = 19, Cols = 10, Square Size / px = 4
* Click "Apply"
>> The extension raises an error
The main problem here is that Inkscape uses spin-buttons in the extension dialog, which invite the user to scroll through any combination of row/col values. However, the extension itself only accepts a finite set of combinations... in other words, the user can very easily select an invalid input for the script. Combining this with "Live preview" leads to bad results!
It might be better (if a bit ugly) to have a drop-down list containing only the valid row/col combinations.
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: inkscape 0.48.1-2ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Mar 19 09:03:24 2011
EcryptfsInUse: Yes
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python render_
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
PythonArgs: ['render_
SourcePackage: inkscape
Title: render_
UpgradeStatus: Upgraded to natty on 2011-02-27 (19 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- Chris Coulson (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 5343 lines (+1005/-4302)6 files modifieddebian/changelog (+38/-0)
debian/patches/00list (+3/-1)
debian/patches/04-fix-build-with-gcc4.6.dpatch (+18/-0)
debian/patches/04-fix-gcc4.6-ftbfs.dpatch (+0/-4301)
debian/patches/05-add-missing-includes.dpatch (+799/-0)
debian/patches/fix-datamatrix-ui.dpatch (+147/-0)
tags: |
added: extensions-plugins ui removed: amd64 natty need-duplicate-check |
Changed in inkscape (Debian): | |
status: | Unknown → Confirmed |
tags: | added: patch |
tags: |
added: patch-accepted-upstream removed: patch |
Changed in inkscape (Debian): | |
status: | Confirmed → Fix Released |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Here is a list of the valid datamatrix dimensions accepted by the extension. The UI should be modified to only allow these values to be entered.
== Square symbols ==
10x10
12x12
14x14
16x16
18x18
20x20
22x22
24x24
26x26
32x32
36x36
40x40
44x44
48x48
52x52
64x64
72x72
80x80
88x88
96x96
104x104
120x120
132x132
144x144
== Rectangular symbols ==
8x18
8x32
12x26
12x36
16x36
16x48