Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_guides_manager.cpp
Show First 20 Lines • Show All 541 Lines • ▼ Show 20 Line(s) | 539 | if (isGuideValid(currentGuide)) { | |||
---|---|---|---|---|---|
542 | // outside canvas in openGL mode | 542 | // outside canvas in openGL mode | ||
543 | const QRectF workRect = KisAlgebra2D::blowRect(docRect, 0 /*0.2*/); | 543 | const QRectF workRect = KisAlgebra2D::blowRect(docRect, 0 /*0.2*/); | ||
544 | if (!workRect.contains(docPos)) { | 544 | if (!workRect.contains(docPos)) { | ||
545 | deleteGuide(currentGuide); | 545 | deleteGuide(currentGuide); | ||
546 | q->setGuidesConfigImpl(guidesConfig); | 546 | q->setGuidesConfigImpl(guidesConfig); | ||
547 | 547 | | |||
548 | /** | 548 | /** | ||
549 | * When we delete a guide, it might happen that we are | 549 | * When we delete a guide, it might happen that we are | ||
550 | * delting the last guide. Therefore we should eat the | 550 | * deleting the last guide. Therefore we should eat the | ||
551 | * corresponding event so that the event filter would stop | 551 | * corresponding event so that the event filter would stop | ||
552 | * the filter processing. | 552 | * the filter processing. | ||
553 | */ | 553 | */ | ||
554 | result = true; | 554 | result = true; | ||
555 | } | 555 | } | ||
556 | 556 | | |||
557 | currentGuide = invalidGuide; | 557 | currentGuide = invalidGuide; | ||
558 | dragStartDoc = QPointF(); | 558 | dragStartDoc = QPointF(); | ||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |