Changeset 250


Ignore:
Timestamp:
Sep 21, 2007, 5:55:56 PM (18 years ago)
Author:
RBRi
Message:

fix usage of StrStartsWithIgnoringCase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Components/CustomFontDialog.PAS

    r214 r250  
    138138
    139139  if Result = 'Roman' then
    140     if StrStartsWithIgnoringCase( 'Tms Rmn', Font.FaceName ) then
     140    if StrStartsWithIgnoringCase(Font.FaceName,'Tms Rmn') then
    141141      // one particularly stupid example
    142142      Result := 'Tms Rmn';
    143143
    144144  if Result = 'Swiss' then
    145     if StrStartsWithIgnoringCase( 'Helv', Font.FaceName ) then
     145    if StrStartsWithIgnoringCase(Font.FaceName, 'Helv') then
    146146      // one particularly stupid example
    147147      Result := 'Helv';
     
    161161
    162162  FamilyName := GetFontFamilyName( Font );
    163   if StrStartsWithIgnoringCase( FamilyName, Result ) then
     163  if StrStartsWithIgnoringCase(Result, FamilyName) then
    164164  begin
    165165    Result := StrSubstringFrom( Result, length( FamilyName ) + 1 );
Note: See TracChangeset for help on using the changeset viewer.