mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:39:15 +02:00
fpvectorial: Multiline text finally fixed without breaking images
git-svn-id: trunk@51965 -
This commit is contained in:
parent
7ee06844a2
commit
4111ab4964
@ -3647,6 +3647,7 @@ function TvEntity.GetEntityFeatures(ADest: TFPCustomCanvas): TvEntityFeatures;
|
|||||||
begin
|
begin
|
||||||
Result.DrawsUpwards := False;
|
Result.DrawsUpwards := False;
|
||||||
Result.DrawsUpwardHeightAdjustment := 0;
|
Result.DrawsUpwardHeightAdjustment := 0;
|
||||||
|
Result.DrawsUpwardHeightAdjustment_FirstLineExcluded := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TvEntity.GenerateDebugTree(ADestRoutine: TvDebugAddItemProc;
|
function TvEntity.GenerateDebugTree(ADestRoutine: TvDebugAddItemProc;
|
||||||
@ -8094,7 +8095,6 @@ begin
|
|||||||
while lEntity <> nil do
|
while lEntity <> nil do
|
||||||
begin
|
begin
|
||||||
lHeight_px := lEntity.GetEntityFeatures(ADest).DrawsUpwardHeightAdjustment_FirstLineExcluded;
|
lHeight_px := lEntity.GetEntityFeatures(ADest).DrawsUpwardHeightAdjustment_FirstLineExcluded;
|
||||||
lHeight_px := 0; // This breaks multiline text inside tables, but removing this breaks raster images inside table position
|
|
||||||
|
|
||||||
if lEntity is TvText then
|
if lEntity is TvText then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user