You've already forked lazarus-ccr
fix bug id=3114291 - divizion by zerro in multiline captions
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1428 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1,14 +1,13 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<Version Value="8"/>
|
<Version Value="9"/>
|
||||||
<General>
|
<General>
|
||||||
<Flags>
|
<Flags>
|
||||||
<AlwaysBuild Value="False"/>
|
<AlwaysBuild Value="False"/>
|
||||||
<LRSInOutputDirectory Value="False"/>
|
<LRSInOutputDirectory Value="False"/>
|
||||||
</Flags>
|
</Flags>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<TargetFileExt Value=".exe"/>
|
|
||||||
<Title Value="RxDBGrid demo"/>
|
<Title Value="RxDBGrid demo"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
@@ -22,8 +21,11 @@
|
|||||||
<MinorVersionNr Value="4"/>
|
<MinorVersionNr Value="4"/>
|
||||||
<RevisionNr Value="1"/>
|
<RevisionNr Value="1"/>
|
||||||
<BuildNr Value="1"/>
|
<BuildNr Value="1"/>
|
||||||
<StringTable Comments="" CompanyName="" FileDescription="Demo application from RXFPC library" FileVersion="3.4.1.1" InternalName="" LegalCopyright="Lagunov Aleksey, GPL 2" LegalTrademarks="" OriginalFilename="" ProductName="Demo application from RXFPC library" ProductVersion="3.1.1.0"/>
|
<StringTable FileDescription="Demo application from RXFPC library" LegalCopyright="Lagunov Aleksey, GPL 2" ProductName="Demo application from RXFPC library" ProductVersion="3.1.1.0"/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
|
<BuildModes Count="1">
|
||||||
|
<Item1 Name="default" Default="True"/>
|
||||||
|
</BuildModes>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
<IgnoreBinaries Value="False"/>
|
<IgnoreBinaries Value="False"/>
|
||||||
@@ -392,10 +394,11 @@
|
|||||||
<Unit45>
|
<Unit45>
|
||||||
<Filename Value="/usr/local/share/lazarus/components/rxnew/rxdbgrid.pas"/>
|
<Filename Value="/usr/local/share/lazarus/components/rxnew/rxdbgrid.pas"/>
|
||||||
<UnitName Value="rxdbgrid"/>
|
<UnitName Value="rxdbgrid"/>
|
||||||
|
<IsVisibleTab Value="True"/>
|
||||||
<EditorIndex Value="1"/>
|
<EditorIndex Value="1"/>
|
||||||
<WindowIndex Value="0"/>
|
<WindowIndex Value="0"/>
|
||||||
<TopLine Value="37"/>
|
<TopLine Value="1216"/>
|
||||||
<CursorPos X="48" Y="41"/>
|
<CursorPos X="48" Y="1240"/>
|
||||||
<UsageCount Value="16"/>
|
<UsageCount Value="16"/>
|
||||||
<Bookmarks Count="3">
|
<Bookmarks Count="3">
|
||||||
<Item0 X="3" Y="2250" ID="3"/>
|
<Item0 X="3" Y="2250" ID="3"/>
|
||||||
@@ -544,16 +547,13 @@
|
|||||||
<Unit62>
|
<Unit62>
|
||||||
<Filename Value="../../../../../../install/fpcsrc/packages/fcl-db/src/base/db.pas"/>
|
<Filename Value="../../../../../../install/fpcsrc/packages/fcl-db/src/base/db.pas"/>
|
||||||
<UnitName Value="db"/>
|
<UnitName Value="db"/>
|
||||||
<IsVisibleTab Value="True"/>
|
|
||||||
<EditorIndex Value="2"/>
|
|
||||||
<WindowIndex Value="0"/>
|
<WindowIndex Value="0"/>
|
||||||
<TopLine Value="541"/>
|
<TopLine Value="541"/>
|
||||||
<CursorPos X="1" Y="569"/>
|
<CursorPos X="1" Y="569"/>
|
||||||
<UsageCount Value="10"/>
|
<UsageCount Value="10"/>
|
||||||
<Loaded Value="True"/>
|
|
||||||
</Unit62>
|
</Unit62>
|
||||||
</Units>
|
</Units>
|
||||||
<JumpHistory Count="3" HistoryIndex="2">
|
<JumpHistory Count="5" HistoryIndex="4">
|
||||||
<Position1>
|
<Position1>
|
||||||
<Filename Value="rxdbgridmainunit.pas"/>
|
<Filename Value="rxdbgridmainunit.pas"/>
|
||||||
<Caret Line="161" Column="14" TopLine="148"/>
|
<Caret Line="161" Column="14" TopLine="148"/>
|
||||||
@@ -566,6 +566,14 @@
|
|||||||
<Filename Value="rxdbgridmainunit.pas"/>
|
<Filename Value="rxdbgridmainunit.pas"/>
|
||||||
<Caret Line="9" Column="12" TopLine="1"/>
|
<Caret Line="9" Column="12" TopLine="1"/>
|
||||||
</Position3>
|
</Position3>
|
||||||
|
<Position4>
|
||||||
|
<Filename Value="/usr/local/share/lazarus/components/rxnew/rxdbgrid.pas"/>
|
||||||
|
<Caret Line="43" Column="11" TopLine="37"/>
|
||||||
|
</Position4>
|
||||||
|
<Position5>
|
||||||
|
<Filename Value="/usr/local/share/lazarus/components/rxnew/rxdbgrid.pas"/>
|
||||||
|
<Caret Line="1231" Column="29" TopLine="1216"/>
|
||||||
|
</Position5>
|
||||||
</JumpHistory>
|
</JumpHistory>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
@@ -575,7 +583,7 @@
|
|||||||
</Target>
|
</Target>
|
||||||
<SearchPaths>
|
<SearchPaths>
|
||||||
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
|
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
|
||||||
<SrcPath Value="$(LazarusDir)/lcl/;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)/"/>
|
<SrcPath Value="$(LazarusDir)/lcl;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
<Parsing>
|
<Parsing>
|
||||||
<SyntaxOptions>
|
<SyntaxOptions>
|
||||||
|
@@ -1237,7 +1237,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
W1:=tmpCanvas.TextWidth(MLRec1.Caption)+2;
|
W1:=tmpCanvas.TextWidth(MLRec1.Caption)+2;
|
||||||
if W1 > W then
|
if W1 > W then
|
||||||
MLRec1.Hegth:= W1 div W + 1
|
MLRec1.Hegth:= W1 div Max(W, 1) + 1
|
||||||
else
|
else
|
||||||
MLRec1.Hegth:=1;
|
MLRec1.Hegth:=1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user