summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dc2ff4)
raw | patch | inline | side by side (parent: 8dc2ff4)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 6 Aug 2008 13:23:32 +0000 (13:23 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 6 Aug 2008 13:23:32 +0000 (13:23 +0000) |
src/pen-context.cpp | patch | blob | history |
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index aeddc5ce19ffc2a1c05345759ae3bfe2007a7f19..69c4861234a49431a16aa1b6a8cc90bffbb27ee7 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
static void
spdc_endpoint_snap(SPPenContext const *const pc, NR::Point &p, guint const state)
{
- /*** old code: ***/
- /***
- if (pc->polylines_paraxial) {
- pen_set_to_nearest_horiz_vert(pc, p, state);
- // TODO: another (constrained) snap required?
- } else {
- if ((state & GDK_CONTROL_MASK)) { //CTRL enables angular snapping
- if (pc->npoints > 0) {
- spdc_endpoint_snap_rotation(pc, p, pc->p[0], state);
- }
- } else {
- if (!(state & GDK_SHIFT_MASK)) { //SHIFT disables all snapping, except the angular snapping above
- //After all, the user explicitely asked for angular snapping by
- //pressing CTRL
- spdc_endpoint_snap_free(pc, p, state);
- }
- }
- }
- **/
-
if ((state & GDK_CONTROL_MASK)) { //CTRL enables angular snapping
if (pc->npoints > 0) {
spdc_endpoint_snap_rotation(pc, p, pc->p[0], state);