
On 2015-12-07 24:46 (+0100), Martin Owens wrote:
I've just been scrutinising the code for guidelines, specifically the code that draws the little circle indicating the main co-ordinate of the guideline.
What it looks like is back in 2009 the code src/display/sp-ctrlpoint code was a clone of the much older original code in src/display/sp-ctrlquadr which we've had since at least 2005.
ctrlquadr draws a square using cairo, used by ui/tools/text-tool only ctrlpoint draws a circle using cairo, used by display/guideline only
If we could replace these two instances with Knot objects, we should be able to remove this code completely? (11.8KB, 1150 lines) Are there any land minds you are aware of with this code? (somewhere it's being used without being able to find it?)
For comparison, SPCtrlLine and SPCtrlCurve are used by pen-tool, mesh-tool, gradient-tool, text-tool and the measure-tool. So they're very well used in comparison.
After * Revision 14523: Remove CtrlPoint and replace with SPKnot https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14523
the anchors of guides (unlocked or locked) no longer hide along with the guide line itself. Any chance this could be changed to match the old behavior?
Regards, V