Fix typos in comments

parent ef9206de
......@@ -177,7 +177,7 @@ public:
* - frame
* The parent text box that the current drawing shape element is
* contained in.
* FIXME we dont support type frame
* FIXME we don't support type frame
* - page
* The page that has the same physical page number as the value of the
* text:anchor-page-number attribute that is attached to the drawing
......
......@@ -417,7 +417,7 @@ void KoTextEditor::setStyle(KoCharacterStyle *style)
recursivelyVisitSelection(d->document->rootFrame()->begin(), visitor);
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (begining of a block). We need to force it.
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (beginning of a block). We need to force it.
//applying a style is absolute, so first initialise the caret with the frame's style, then apply the paragraph's. Finally apply the character style
QTextCharFormat charFormat = KoTextDocument(d->document).frameCharFormat();
KoStyleManager *styleManager = KoTextDocument(d->document).styleManager();
......@@ -478,7 +478,7 @@ void KoTextEditor::setStyle(KoParagraphStyle *style)
recursivelyVisitSelection(d->document->rootFrame()->begin(), visitor);
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (begining of a block). We need to force it.
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (beginning of a block). We need to force it.
//applying a style is absolute, so first initialise the caret with the frame's style, then apply the paragraph style
QTextCharFormat charFormat = KoTextDocument(d->document).frameCharFormat();
d->caret.setCharFormat(charFormat);
......@@ -540,7 +540,7 @@ void KoTextEditor::mergeAutoStyle(const QTextCharFormat &deltaCharFormat)
recursivelyVisitSelection(d->document->rootFrame()->begin(), visitor);
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (begining of a block). We need to force it.
if (!isEditProtected() && caretAnchor == caretPosition) { //if there is no selection, it can happen that the caret does not get the proper style applied (beginning of a block). We need to force it.
d->caret.mergeCharFormat(deltaCharFormat);
}
else {
......
......@@ -574,7 +574,7 @@ void KoTextDocumentLayout::positionAnchorTextRanges(int pos, int length, const Q
d->foundAnchors.append(anchor);
// At the beginAnchorCollecting the strategy is cleared, so this if will be entered
// everytime we layout a page (though not everytime for the inner repeats due to anchors)
// every time we layout a page (though not every time for the inner repeats due to anchors)
if (!anchor->placementStrategy()) {
int index = d->textAnchors.count();
anchor->setPlacementStrategy(new FloatingAnchorStrategy(anchorRange, d->anchoringRootArea));
......
......@@ -54,7 +54,7 @@ public:
/// If you need to use only one shape, call currentShape()
virtual QList<KoShape*> currentShapes();
/// Returns the first selected shape of the ressource
/// Returns the first selected shape of the resource
virtual KoShape *currentShape();
private slots:
......
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