web slicer extention returns error when html position changed to left float

Bug #1430724 reported by benja@bk.ru
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

When 'layout disposition' is set to 'Left Floated' and 'Position anchor' is set to 'Top and left' in Web>Slicer>Create a slicer...
then in export the error comes
----------------------------------------------
Traceback (most recent call last):
  File "webslicer_export.py", line 437, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "webslicer_export.py", line 129, in effect
    self.make_html_file()
  File "webslicer_export.py", line 148, in make_html_file
    ' The automatic HTML and CSS code are only a helper.' +\
  File "webslicer_export.py", line 393, in html_code
    ' src="'+self.img_name(el, self.get_el_conf(el))+'"/>\n'
  File "webslicer_export.py", line 179, in get_el_conf
    desc = el.find(self.svgNS+'desc')
AttributeError: 'dict' object has no attribute 'find'
----------------------------------------------

Inkscape version (taken from test case):
   inkscape:version="0.48.4 r9939"
OS/platform:
   Ubuntu 14.04.2 LTS

Revision history for this message
benja@bk.ru (benja-k) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Please add information about OS/platform and Inkscape version (see Inkscape menu 'Help > About Inkscape') to the bug description.

Could you also attach a test case (Inkscape SVG file) to the report which exposes the reported issue? This would ease further investigation ...

tags: added: extensions-plugins
removed: slicer web
Changed in inkscape:
status: New → Incomplete
Revision history for this message
benja@bk.ru (benja-k) wrote :

Here it is simple file with bug in.

su_v (suv-lp)
description: updated
Changed in inkscape:
status: Incomplete → New
Revision history for this message
benja@bk.ru (benja-k) wrote :

Ok, I forgot to mention my OS/platform.

Linux mercure 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch

Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP (32bits), Inkscape 0.48.4 and trunk rev. 14005.
The slicer rectangle is correctly created, with no error message.

su_v (suv-lp)
description: updated
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Crunchbang Waldorf, Inkscape 0.48.3.1 and trunk revision 14007.

I first misunderstood the report, and my tests on Windows XP can be considered invalid (the bug is very likely to show on Windows too).

Changed in inkscape:
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Affects all img related positions (Positioned, Non positioned, Left floated and Right floated images).

su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.