Commit 8f3deaa3 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix painting when a Canvas or Dab is mirrored and/or Rotated

The angle should flip *only* when the dab is mirrored, not the canvas.

This patch also adds a very detailed unittest for it :)

BUG:322344
parent c902d9fc
add_subdirectory(brush/tests)
include_directories(brush)
include_directories(pen)
include_directories(eraser)
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories( ${KOMAIN_INCLUDES} ${CMAKE_SOURCE_DIR}/krita/sdk/tests )
macro_add_unittest_definitions()
########### next target ###############
set(kis_brushop_test_SRCS kis_brushop_test.cpp ../../../../../sdk/tests/stroke_testing_utils.cpp)
kde4_add_unit_test(KisBrushOpTest TESTNAME krita-plugins-KisBrushOpTest ${kis_brushop_test_SRCS})
target_link_libraries(KisBrushOpTest ${KDE4_KDEUI_LIBS} kritaimage kritaui kritalibpaintop ${QT_QTTEST_LIBRARY})
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment