mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:59:08 +02:00
fixed typo
git-svn-id: trunk@9648 -
This commit is contained in:
parent
8396895ec1
commit
92ccd86ac0
@ -1154,8 +1154,9 @@ var
|
|||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function Has3SideSplitter(Side: TAnchorKind): boolean;
|
function HasOwnSideSplitter(Side: TAnchorKind): boolean;
|
||||||
{ check if node has a splitter to Side, and the splitter shares 3 sides
|
{ check if node has a splitter to Side, and the node is the only node
|
||||||
|
anchored to the splitter at this side.
|
||||||
If yes, it removes the splitter and the node and reconnects the nodes
|
If yes, it removes the splitter and the node and reconnects the nodes
|
||||||
using the splitter with the opposite side
|
using the splitter with the opposite side
|
||||||
For example:
|
For example:
|
||||||
@ -1202,10 +1203,10 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
if HasNoSplitter
|
if HasNoSplitter
|
||||||
or Has3SideSplitter(akLeft)
|
or HasOwnSideSplitter(akLeft)
|
||||||
or Has3SideSplitter(akTop)
|
or HasOwnSideSplitter(akTop)
|
||||||
or Has3SideSplitter(akRight)
|
or HasOwnSideSplitter(akRight)
|
||||||
or Has3SideSplitter(akBottom)
|
or HasOwnSideSplitter(akBottom)
|
||||||
or HasSpiralSplitter then begin
|
or HasSpiralSplitter then begin
|
||||||
end else begin
|
end else begin
|
||||||
// this should never be reached
|
// this should never be reached
|
||||||
|
Loading…
Reference in New Issue
Block a user