Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Get rid of division by zero in the KisMplTest.

Elena Sagalaeva7d09088843bf
diff --git a/libs/global/tests/KisMplTest.cpp b/libs/global/tests/KisMplTest.cpp
index a3aa4fa014..453dead926 100644
--- a/libs/global/tests/KisMplTest.cpp
+++ b/libs/global/tests/KisMplTest.cpp
@@ -529,8 +529,7 @@ void KisMplTest::testMemberOperatorsAccumulate()
void KisMplTest::testMemberOperatorsAccumulateToKisSharedPtr()
{
- std::vector<KisSharedPtr<StructWithShared>> vec({new StructWithShared(0),
- new StructWithShared(1),
+ std::vector<KisSharedPtr<StructWithShared>> vec({new StructWithShared(1),
new StructWithShared(2),
new StructWithShared(3),
new StructWithShared(4)});