Changeset 429
- Timestamp:
- Apr 26, 2019, 5:06:54 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/RichTextLayoutUnit.pas
r423 r429 389 389 390 390 WrapX := FLayoutWidth 391 - Style.LeftMargin // ALT 392 * FontWidthPrecisionFactor 391 393 - FRichTextSettings.Margins.Right 392 394 * FontWidthPrecisionFactor; … … 1230 1232 ): LongInt; // returns new offset within line 1231 1233 var 1232 P: PChar; // pointer to current character in string 1233 NextP: PChar; // pointer to the following character, if any 1234 Element: TTextElement; // element data about the current character 1235 CurrentPos: LongInt; // index of first character of line 1236 Line: LongInt; // current line number 1237 Offset: LongInt; // offset position within current line 1238 InsideDBC: boolean; 1239 begin 1240 if ( Offset > 0 ) and 1241 ( Codepage in [ 932, 936, 942, 943, 949, 950, 1381, 1386 ]) then 1234 P: PChar; // pointer to current character in string 1235 NextP: PChar; // pointer to the following character, if any 1236 Element: TTextElement; // element data about the current character 1237 CurrentPos: LongInt; // index of first character of line 1238 Line: LongInt; // current line number 1239 Offset: LongInt; // offset position within current line 1240 InsideDBC: boolean; 1241 begin 1242 Offset := 0; 1243 1244 if ( Codepage in [ 932, 936, 942, 943, 949, 950, 1381, 1386 ]) then 1242 1245 begin 1243 1246 // Because parsing of byte types is state based, we must verify every … … 1247 1250 CurrentPos := GetCharIndex( FLines[ Line ].Text ); 1248 1251 P := TextPointer + CurrentPos; 1249 Offset := 0;1250 1252 InsideDBC := false; 1251 1253
Note:
See TracChangeset
for help on using the changeset viewer.