Merge lp:~osomon/elisa/css_property_no_unit into lp:elisa
Proposed by
Olivier Tilloy
Status: | Merged |
---|---|
Merged at revision: | 1618 |
Proposed branch: | lp:~osomon/elisa/css_property_no_unit |
Merge into: | lp:elisa |
Diff against target: |
26 lines (+14/-2) 1 file modified
elisa-plugins/elisa/plugins/pigment/widgets/panel.py (+14/-2) |
To merge this branch: | bzr merge lp:~osomon/elisa/css_property_no_unit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Florian Boucault | Approve | ||
Jonathan Rauprich | Approve | ||
Review via email: mp+26369@code.launchpad.net |
Description of the change
This branch addresses bug #379409.
Recent versions of the parser in CSSUtils (≥ 0.9.6, e.g. as found in Ubuntu 10.04) will trim the unit for zero values: "top_height: 0px;" will become "top_height: 0;".
The issue is with the PiecePanel widget that always expects ValueWithUnits for its attributes.
The proposed solution restores the unit for values that don't have it in update_
The careful reviewer will verify that the very verbose tracebacks are gone, that the UI is rendered as designed, and that this change doesn't break existing unit tests.
To post a comment you must log in.
This patch fixes the problem on my machine (Ubuntu 10.04 x64), no problems noticed.