fpspreadsheet: Fix automatic row height calculation in case of stacked text rotation.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4224 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-07-30 11:40:48 +00:00
parent 9674b291fd
commit 393ac71eb4

View File

@ -601,9 +601,9 @@ begin
ARichTextParams, AWordWrap, haLeft, vaTop, ATextRotation, ARichTextParams, AWordWrap, haLeft, vaTop, ATextRotation,
w, h, true); w, h, true);
case ATextRotation of case ATextRotation of
trHorizontal, rtStacked: trHorizontal:
Result := h; Result := h;
rt90DegreeClockwiseRotation, rt90DegreeCounterClockwiseRotation: rt90DegreeClockwiseRotation, rt90DegreeCounterClockwiseRotation, rtStacked:
Result := w; Result := w;
end; end;
end; end;