Merge lp:~novalis/inkscape/cleanup into lp:~inkscape.dev/inkscape/trunk

Proposed by David Turner
Status: Merged
Merged at revision: 12688
Proposed branch: lp:~novalis/inkscape/cleanup
Merge into: lp:~inkscape.dev/inkscape/trunk
Diff against target: 13 lines (+0/-2)
1 file modified
src/style.cpp (+0/-2)
To merge this branch: bzr merge lp:~novalis/inkscape/cleanup
Reviewer Review Type Date Requested Status
Inkscape Developers Pending
Review via email: mp+190020@code.launchpad.net

Description of the change

(I'm not sure if I'm doing this pull request right, so please let me know if I've screwed it up)

To post a comment you must log in.
Revision history for this message
Vinipsmaker (vinipsmaker) wrote :

I understand the simplification, but maybe the "paint->value.href->detach();" code changes the value of the expression "paint->value.href". Somebody needs to dig deeper in this function.

Revision history for this message
Vinipsmaker (vinipsmaker) wrote :

Anyway, if the simplification can not be done, some comment should be there at least.

Maybe I'll dig deeper soon.

Revision history for this message
David Turner (novalis) wrote :

I looked into that, and I don't think it does. None of the code in detach() or its callees seems to reference the owner. Unless it's in something hooked up to _changed_signal, but it looks to me like _changed_signal is totally unused.

Revision history for this message
Vinipsmaker (vinipsmaker) wrote :

I've spent more time looking into the code. Surely is okay, thanks for contributing. :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/style.cpp'
2--- src/style.cpp 2013-09-28 13:59:58 +0000
3+++ src/style.cpp 2013-10-09 03:15:29 +0000
4@@ -2469,9 +2469,7 @@
5 if (paint->value.href->getObject()){
6 paint->value.href->detach();
7 }
8- }
9
10- if (paint->value.href) {
11 try {
12 paint->value.href->attach(*uri);
13 } catch (Inkscape::BadURIException &e) {