void Guideline::move_to(int x, int y, bool store_undo, bool human) { Q_UNUSED (x) Q_UNUSED (y) Q_UNUSED (store_undo) Q_UNUSED (human) #if 0 CanvasItem *cobj = this; int newval = 0; bool is_leader = false; int newx = 4 - cxoff, newy = 4 - cyoff; if (type == GUIDE_TYPE_VERT) { newval = x; newx = x; } else if (type == GUIDE_TYPE_HORI) { newval = y; newy = y; } fPos = newval; if ((newx == xpos) && (newy == ypos)) { // Not moving, so do nothing. return; } bool freeshift = canvas()->isLayoutSuspended(); if (freeshift) { d_printf("FREESHIFT\n"); } if (human && (!is_leader || freeshift)) { removeFromDistributions(freeshift); // Since the previous call will have suggested new values for // the guidelines involved in the distribution we need to resolve // here to avoid what looks like an unsovable state. } cobj->move_to(newx, newy, store_undo); #endif }