Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Action Executed In OMList.doAction() #55

Open
jose-m-torres opened this issue Sep 17, 2021 · 1 comment
Open

Incorrect Action Executed In OMList.doAction() #55

jose-m-torres opened this issue Sep 17, 2021 · 1 comment

Comments

@jose-m-torres
Copy link

In the OMList.doAction() method the OMGraphicConstants.LOWER_TO_BOTTOM_GRAPHIC_MASK action calls the moveIndexedOneToBottom() method instead of moveIndexedToBottom().

Both OMGraphicConstants.LOWER_TO_BOTTOM_GRAPHIC_MASK and OMGraphicConstants.LOWER_GRAPHIC_MASK currently perform the same action to moveIndexedOneToBottom().

I verified that correctly calling moveIndexedToBottom() when the mask is set to OMGraphicConstants.LOWER_TO_BOTTOM_GRAPHIC_MASK works as expected.

The issue exists in the currently available download version, OpenMap 5.1.15.

The correction is the following inside the OMList.doAction() method:

if (action.isMask(LOWER_TO_BOTTOM_GRAPHIC_MASK)) {
    Debug.message("omgl", "OMGraphicList.doAction: lowering graphic to bottom");
    moveIndexedToBottom(i); // -> Corrected by Jose M. Torres
}
@dfdietrick
Copy link
Contributor

dfdietrick commented Sep 24, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants