X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/925e9792d32e353233985f53a4845f154e455a58..c0b0635cf69537ca32377bad5650b39402cb21b6:/samples/richedit/wxllist.cpp?ds=sidebyside diff --git a/samples/richedit/wxllist.cpp b/samples/richedit/wxllist.cpp index 0025d971b3..60b6b98434 100644 --- a/samples/richedit/wxllist.cpp +++ b/samples/richedit/wxllist.cpp @@ -325,7 +325,7 @@ wxLayoutObjectText::GetOffsetScreen(wxDC &dc, CoordType xpos) const &width, &height, &descent); offs++; } - /* We have to substract 1 to compensate for the offs++, and another + /* We have to subtract 1 to compensate for the offs++, and another one because we don't want to position the cursor behind the object what we clicked on, but before - otherwise it looks funny. */ @@ -2141,7 +2141,7 @@ wxLayoutList::MoveCursorWord(int n, bool untilNext) CoordType moveDelta = p - start - offset; if ( (n < 0) && (offset == tobj->GetLength() - 1) ) { - // because we substracted 1 from offset in this case above, now + // because we subtracted 1 from offset in this case above, now // compensate for it moveDelta--; }