Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/selectiontools/kis_tool_select_elliptical.cc
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | void __KisToolSelectEllipticalLocal::finishRect(const QRectF &rect, qreal roundCornersX, qreal roundCornersY) | 49 | void __KisToolSelectEllipticalLocal::finishRect(const QRectF &rect, qreal roundCornersX, qreal roundCornersY) | ||
50 | { | 50 | { | ||
51 | Q_UNUSED(roundCornersX); | 51 | Q_UNUSED(roundCornersX); | ||
52 | Q_UNUSED(roundCornersY); | 52 | Q_UNUSED(roundCornersY); | ||
53 | 53 | | |||
54 | KisCanvas2 * kisCanvas = dynamic_cast<KisCanvas2*>(canvas()); | 54 | KisCanvas2 * kisCanvas = dynamic_cast<KisCanvas2*>(canvas()); | ||
55 | Q_ASSERT(kisCanvas); | 55 | KIS_ASSERT(kisCanvas); | ||
dkazakov: recover-version of the assert is expected to have a recover-branch, like
```… | |||||
sourabhboss: Done | |||||
56 | 56 | | |||
57 | KisSelectionToolHelper helper(kisCanvas, kundo2_i18n("Select Ellipse")); | 57 | KisSelectionToolHelper helper(kisCanvas, kundo2_i18n("Select Ellipse")); | ||
58 | 58 | | |||
59 | if (helper.tryDeselectCurrentSelection(pixelToView(rect), selectionAction())) { | 59 | if (helper.tryDeselectCurrentSelection(pixelToView(rect), selectionAction())) { | ||
60 | return; | 60 | return; | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | const SelectionMode mode = | 63 | const SelectionMode mode = | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |
recover-version of the assert is expected to have a recover-branch, like
I guess in this case you wanted to use KIS_SAFE_ASSERT_RECOVER_RETURN(kisCanvas);