Bug fix B2013-015. Fixed a refresh problem that sometimes happens when you delete a step.

Bug fix B2013-016, added a check for the existence of the path assigned to the roapp environment variable
This commit is contained in:
2013-01-28 16:37:22 +00:00
parent 49cc4aa1ca
commit ee57834d9d
2 changed files with 28 additions and 2 deletions

View File

@@ -683,6 +683,20 @@ namespace Volian.Controls.Library
newFocus.AdjustLocation();
//newFocus.ShowTops("");
//_MyTimer.ShowElapsedTimes("RemoveItem");
ForceEditItemRefresh(newFocus);
}
private static void ForceEditItemRefresh(EditItem newFocus)
{
// bug fix
// need to force a refresh from the level above the step that was removed.
// this fixes a problem where the following step/substep wasn't shown on the screen (but was there)
// and fixes a problem where the sequence numbers were off by one
// and fixes a problem where an edit window would end up on top of the ones above it
EditItem ei = newFocus;
while (ei.MyPreviousEditItem != null) ei = ei.MyPreviousEditItem;
if (ei.MyParentEditItem != null)
ei.MyParentEditItem.Expand(true);
}
public EditItem DeleteItem()
{