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/image
Kunda Ki56b13581bb21
diff --git a/libs/image/floodfill/kis_gap_map.cpp b/libs/image/floodfill/kis_gap_map.cppindex 252ccacd25..437ab8fcc5 100644--- a/libs/image/floodfill/kis_gap_map.cpp+++ b/libs/image/floodfill/kis_gap_map.cpp@@ -218,7 +218,7 @@ void KisGapMap::loadDistanceTile(const QPoint& tile, const QRect& nearbyTilesRec// Compromise: At the tile size 64 px and the gap size 32 px, the guard band must be// 31 px at most, because opacity is sampled in gap size + 1 radius, which could be two tiles// away and that tile might not have been loaded yet. To avoid loading one row of that tile,- // we can clamp the guard band to 31. The error intruduced by it should not be noticeable.+ // we can clamp the guard band to 31. The error introduced by it should not be noticeable.const int guardBandVertical = qMin(guardBand, 31);const int y1 = tileOpaqueTopLeft || tileOpaqueTop ? qMax(0, rect.top() - guardBandVertical) : rect.top();diff --git a/libs/image/floodfill/kis_scanline_fill.cpp b/libs/image/floodfill/kis_scanline_fill.cppindex 0cb78a6e61..0d5a78be4e 100644--- a/libs/image/floodfill/kis_scanline_fill.cpp+++ b/libs/image/floodfill/kis_scanline_fill.cpp@@ -1064,7 +1064,7 @@ bool KisScanlineFill::fillOpacity(DifferencePolicy &differencePolicy,const QRect& rect) const{#if 0- // These assers affect the performance.+ // These asserts affect the performance.KIS_SAFE_ASSERT_RECOVER_RETURN((m_d->boundingRect.left() == 0) && (m_d->boundingRect.top() == 0) &&"FATAL: The fill bounds must start at (0,0)");KIS_SAFE_ASSERT_RECOVER_RETURN(m_d->boundingRect.contains(rect) &&diff --git a/libs/image/kis_base_accessor.h b/libs/image/kis_base_accessor.hindex 1c0dd92620..34b19a69eb 100644--- a/libs/image/kis_base_accessor.h+++ b/libs/image/kis_base_accessor.h@@ -22,9 +22,8 @@ public:virtual const quint8 * oldRawData() const = 0;/**- * @return a pointer to the most actual pixel data,- * this points to te same data as rawData() method of- * a writable accessor+ * @return a pointer to the most actual pixel data, this points to the same data as rawData()+ * method of a writable accessor.*/virtual const quint8 * rawDataConst() const = 0;diff --git a/libs/image/kis_cage_transform_worker.cpp b/libs/image/kis_cage_transform_worker.cppindex eb85f60b16..7f2cbe2030 100644--- a/libs/image/kis_cage_transform_worker.cpp+++ b/libs/image/kis_cage_transform_worker.cpp@@ -44,7 +44,7 @@ struct Q_DECL_HIDDEN KisCageTransformWorker::PrivateQVector<QPointF> validPoints;/**- * Contains all points fo the grid including non-defined+ * Contains all points of the grid including non-defined* points (the ones which are placed outside the cage).*/QVector<QPointF> allSrcPoints;diff --git a/libs/image/kis_fill_painter.h b/libs/image/kis_fill_painter.hindex c7e0bff3b8..57d27ef1c8 100644--- a/libs/image/kis_fill_painter.h+++ b/libs/image/kis_fill_painter.h@@ -250,7 +250,7 @@ public:* Create a list of jobs that will fill synchronously all the pixels of the* @ref outSelection device inside @ref rect if the corresponding pixels* on @ref referenceDevice are similar to @ref referenceColor. @ref rect- * is splitted into smaller rects if needed, and the painting of each one+ * is split into smaller rects if needed, and the painting of each one* is distributed on several jobs** @param outSelection the selection where the values are written todiff --git a/libs/image/kis_idle_watcher.cpp b/libs/image/kis_idle_watcher.cppindex f2710a801d..d997ed5164 100644--- a/libs/image/kis_idle_watcher.cpp+++ b/libs/image/kis_idle_watcher.cpp@@ -35,7 +35,7 @@ struct KisIdleWatcher::Private/*** We wait until the counter reaches IDLE_CHECK_COUNT, then consider the* image to be really "idle". If the counter is negative, it means that- * "no delay" update is triggered, which desables couting and the event+ * "no delay" update is triggered, which disables counting and the event* is triggered on the next non-busy tick.*/int idleCheckCounter;diff --git a/libs/image/kis_image.cc b/libs/image/kis_image.ccindex e922a846b9..f960028e71 100644--- a/libs/image/kis_image.cc+++ b/libs/image/kis_image.cc@@ -2179,7 +2179,7 @@ void KisImage::refreshGraphAsync(KisNodeSP root, const QVector<QRect> &rects, co* We should also take into account the change rect of all the layers that lay* above the "dirty" pass-through group (i.e. convert the change rect of the* child into a change rect of the parent). That is required for a case,- * when threre are adjustment layers laying above the pass-through group.+ * when there are adjustment layers laying above the pass-through group.*/QVector<QRect> changeRects = requestedRects;KisProjectionLeafSP leaf = root->projectionLeaf()->nextSibling();diff --git a/libs/image/kis_image_animation_interface.h b/libs/image/kis_image_animation_interface.hindex 757cdf9f77..c89da45c25 100644--- a/libs/image/kis_image_animation_interface.h+++ b/libs/image/kis_image_animation_interface.h@@ -139,7 +139,7 @@ public:* generation methods.** This method is **not** blocking, it just forbids further- * actions. If there is any backround action is running, it+ * actions. If there is any background action running, it* continues to run. Use lockFrameGeneration() to wait* for completion of such actions.*diff --git a/libs/image/kis_processing_applicator.h b/libs/image/kis_processing_applicator.hindex 4a0c6cdd6e..dc67c6a854 100644--- a/libs/image/kis_processing_applicator.h+++ b/libs/image/kis_processing_applicator.h@@ -91,7 +91,7 @@ public:/*** @brief runSingleCommandStroke creates a stroke and runs \p cmd in it.- * The text() field fo \p cmd is used as a title of the stroke.+ * The text() field of \p cmd is used as a title of the stroke.* @param image the image to run the stroke on* @param cmd the command to be executed* @param sequentiality sequentiality property of the command being executed (see strokes documentation)diff --git a/libs/image/kis_selection.h b/libs/image/kis_selection.hindex 62085950c8..319a7dc9f9 100644--- a/libs/image/kis_selection.h+++ b/libs/image/kis_selection.h@@ -121,7 +121,7 @@ public:* NOTE: use pixelSelection() for changing the selection only. For* reading the selection and passing the data to bitBlt function use* projection(). Although projection() and pixelSelection() currently- * point ot the same paint device, this behavior may change in the+ * point to the same paint device, this behavior may change in the* future.*/KisPixelSelectionSP pixelSelection() const;diff --git a/libs/image/kis_selection_filters.cpp b/libs/image/kis_selection_filters.cppindex f23992fcdb..5939b187ed 100644--- a/libs/image/kis_selection_filters.cpp+++ b/libs/image/kis_selection_filters.cpp@@ -1205,7 +1205,7 @@ QRect KisGrowUntilDarkestPixelSelectionFilter::changeRect(const QRect &rect, Kisvoid KisGrowUntilDarkestPixelSelectionFilter::process(KisPixelSelectionSP pixelSelection, const QRect &rect){// Copy the original selection. We will grow this adaptively until the- // darkest or mor opaque pixels or until the maximum grow is reached.+ // darkest or more opaque pixels or until the maximum grow is reached.KisPixelSelectionSP mask = new KisPixelSelection(*pixelSelection);// Grow the original selection normally. At the end this selection will be// masked with the adaptively grown mask. We cannot grow adaptively thisdiff --git a/libs/image/kis_strokes_queue.cpp b/libs/image/kis_strokes_queue.cppindex e79121ceb0..3fd31b480f 100644--- a/libs/image/kis_strokes_queue.cpp+++ b/libs/image/kis_strokes_queue.cpp@@ -427,7 +427,7 @@ bool KisStrokesQueue::tryCancelCurrentStrokeAsync()/*** 1) We can cancel only cancellable strokes- * 2) We can only cancel a continuos set of strokes+ * 2) We can only cancel a continuous set of strokes** Basically, a non-cancellable stroke adds a barrier* wall into the strokes queue, preventing cancellationdiff --git a/libs/image/tests/kis_clone_layer_test.cpp b/libs/image/tests/kis_clone_layer_test.cppindex 5bb75a6509..439c2e17cf 100644--- a/libs/image/tests/kis_clone_layer_test.cpp+++ b/libs/image/tests/kis_clone_layer_test.cpp@@ -536,7 +536,7 @@ void KisCloneLayerTest::testUpdatesWhileHidden()* area is not vidible. To fix this, we need to perform "change-rect-based"-* update instead of "dirty-rect-based"-update. In the current terms, it means* that we should do refreshGraphAsync() on any visibility change. But our system- * is not fully designed to encorporate that. We usually keep the content of the+ * is not fully designed to incorporate that. We usually keep the content of the* group layers updated, even when the group itself is hidden. So we need to* do a significant design change for that.*/@@ -851,7 +851,7 @@ void KisCloneLayerTest::testCloneOfGroupWithClones()image->waitForDone();/**- * If the image is successfully renderred and **not** stuck in the infinite+ * If the image is successfully rendered and **not** stuck in the infinite* loop in the clone layers triggering each other, then the test is passed.*/diff --git a/libs/image/tests/kis_paint_device_test.cpp b/libs/image/tests/kis_paint_device_test.cppindex 003d118175..f024db6966 100644--- a/libs/image/tests/kis_paint_device_test.cpp+++ b/libs/image/tests/kis_paint_device_test.cpp@@ -1652,7 +1652,7 @@ void KisPaintDeviceTest::testFramesSignals()QVERIFY(ch == channel);/**- * The signal should come **after** the frame has beed added+ * The signal should come **after** the frame has been added*/KisKeyframeSP keyframe = ch->keyframeAt(time);@@ -1677,7 +1677,7 @@ void KisPaintDeviceTest::testFramesSignals()QVERIFY(ch == channel);/**- * The signal should come **before** the frame has beed removed+ * The signal should come **before** the frame has been removed*/KisKeyframeSP keyframe = ch->keyframeAt(time);@@ -1701,7 +1701,7 @@ void KisPaintDeviceTest::testFramesSignals()QVERIFY(ch == channel);/**- * The signal should come **after** the frame has beed removed+ * The signal should come **after** the frame has been removed*/KisKeyframeSP keyframe = ch->keyframeAt(time);