Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5ad0a7b

Browse files
BerndNlivecodepanos
authored andcommitted
[Bug 22440] Fix card indentation in PB if stack name contains "of" (#2101)
* [Bug 22440] Fix card indentation in PB if stack name contains "of" PB checks for cards whether the owner of the card is a substack by testing for "stack" and "of" in owner name. This fails if the stack name contains "of" and returns wrong indentation level. * Create bugfix-22440.md * Update revprojectbrowserbehavior.livecodescript
1 parent 03abfdf commit 5ad0a7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Toolset/palettes/project browser/revprojectbrowserbehavior.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ function levelConnectors pObjectArray, pParentRow, pPosition
14761476
put "branch" into tLevelConnectors[1]
14771477
end if
14781478
else if pObjectArray["type"] is "card" then
1479-
if word 1 of pObjectArray["owner"] is "stack" AND pObjectArray["owner"] contains "of" then
1479+
if word 1 of pObjectArray["owner"] is "stack" AND the owner of pObjectArray["owner"] is not empty then
14801480
put sDisplayArray["objects"][pParentRow]["levels"] into tParentLevelConnectors
14811481
if pPosition is "only" then
14821482
if tParentLevelConnectors[1] is "branch" then put "vertical" into tLevelConnectors[1]

notes/bugfix-22440.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix card indentation in PB if stack name contains "of"

0 commit comments

Comments
 (0)