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++

Fix typos in libs/pigment Fixes typos in source documentation

Kunda Ki15fd926c670e
diff --git a/libs/pigment/KoColor.cpp b/libs/pigment/KoColor.cpp
index f8ca4eb671..9b30d5dd8f 100644
--- a/libs/pigment/KoColor.cpp
+++ b/libs/pigment/KoColor.cpp
@@ -594,7 +594,7 @@ KoColor KoColor::fromSVG11(const QString value, QHash<QString, const KoColorProf
QString iccprofilename = values.first().split("(").last();
values.removeFirst();
- // svg11 docs say that searching the name should be caseinsentive.
+ // svg11 docs say that searching the name should be case-insensitive.
QStringList entry = QStringList(profileList.keys()).filter(iccprofilename, Qt::CaseInsensitive);
if (entry.empty()) {
continue;
diff --git a/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h b/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h
index b4bf3b707b..d84cf57e6c 100644
--- a/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h
+++ b/libs/pigment/compositeops/KoColorSpaceBlendingPolicy.h
@@ -47,7 +47,7 @@ struct KoSubtractiveBlendingPolicy
};
/**
- * @return false if the user seleceted the legacy behavior of the blendmodes in CMYK color spaces
+ * @return false if the user selected the legacy behavior of the blendmodes in CMYK color spaces
*/
KRITAPIGMENT_EXPORT
bool useSubtractiveBlendingForCmykColorSpaces();
diff --git a/libs/pigment/compositeops/KoCompositeOpFunctions.h b/libs/pigment/compositeops/KoCompositeOpFunctions.h
index 7071065cfd..f250d6575c 100644
--- a/libs/pigment/compositeops/KoCompositeOpFunctions.h
+++ b/libs/pigment/compositeops/KoCompositeOpFunctions.h
@@ -60,7 +60,7 @@ struct CFReorientedNormalMapCombine : KoClampedSourceAndDestinationCompositeOpGe
/**
* If the source vector has zero height, then we should just
- * skip all the changes (with seems to be the bahavior of the
+ * skip all the changes (with seems to be the behavior of the
* formula around the null point)
*/
if (isZeroValueFuzzy(srcB)) {
diff --git a/libs/pigment/tests/TestCompositeOpInversion.cpp b/libs/pigment/tests/TestCompositeOpInversion.cpp
index fe25006dc6..0a80746d42 100644
--- a/libs/pigment/tests/TestCompositeOpInversion.cpp
+++ b/libs/pigment/tests/TestCompositeOpInversion.cpp
@@ -43,7 +43,7 @@ bool containerContains(const C &container, T &&value) {
void TestCompositeOpInversion::test()
{
/**
- * Comparing of CMYK against RGB would be more preferrable, but it just
+ * Comparing of CMYK against RGB would be more preferable, but it just
* doesn't work, the color space difference is too high. So we use an
* alternative approach and just compare, which blend modes are invariant
* to channel inversion.
@@ -58,7 +58,7 @@ void TestCompositeOpInversion::test()
* - COMPOSITE_DESTINATION_ATOP;
* - COMPOSITE_DISSOLVE;
*
- * All other blendmodes have too comlicated formulas (or alpha-composition),
+ * All other blendmodes have complex formulas (or alpha-composition),
* so they change their look on subtracted color spaces. Which means that
* all the blendmodes except the listed ones should be subjected to conversion
* to additive color space in CMYK mode.