Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 13612 → Rev 13613

/branches/Version135/Scribus/scribus/canvasmode_create.cpp
264,8 → 264,9
newY = bounds.bottom();
}
}
else
{
//CB: #8099: Readd snapping for drag creation of lines by commenting this else..
//else
//{
FPoint np2 = m_doc->ApplyGridF(FPoint(newX, newY));
double nx = np2.x();
double ny = np2.y();
272,7 → 273,7
m_doc->ApplyGuides(&nx, &ny);
newX = qRound(nx);
newY = qRound(ny);
}
//}
canvasCurrCoord.setXY(newX, newY);
m_view->HaveSelRect = true;
 
/branches/Version135/Scribus/scribus/canvasgesture_linemove.cpp
191,6 → 191,15
newX = qRound(newX / m_doc->guidesSettings.minorGrid) * m_doc->guidesSettings.minorGrid;
newY = qRound(newY / m_doc->guidesSettings.minorGrid) * m_doc->guidesSettings.minorGrid;
}
//<<#8099
FPoint np2 = m_doc->ApplyGridF(FPoint(newX, newY));
double nx = np2.x();
double ny = np2.y();
m_doc->ApplyGuides(&nx, &ny);
newX = qRound(nx);
newY = qRound(ny);
//>>#8099
 
m_bounds.setBottomRight(QPointF(newX, newY));
// qDebug() << "LineMove::adjustBounds" << m_bounds << rotation() << length() << m_bounds.bottomRight();