Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Poly's moveHandle() always returns null #1042

Copy link
Copy link

Description

@MarcinOrlowski
Issue body actions

In src/main/java/com/cburch/draw/shapes/Poly.java line 319, moveHandle() method reads:

  @Override
  public Handle moveHandle(HandleGesture gesture) {
    final var hs = getHandles(gesture);
    final var is = new Handle[hs.size()];
    Handle ret = null;
    var i = -1;
    for (final var h : hs) {
      i++;
      is[i] = h;
    }
    setHandles(is);
    return ret;
  }

my concern is return value as it is always null. And since this is consumed in other parts, I wonder if this is intentional but undocumented, or bug. Anyone knows more?

Reactions are currently unavailable

Metadata

Metadata

Labels

investigatingLet's check, maybe there's something about it...Let's check, maybe there's something about it...pri -1Not that crucial (lower priority)Not that crucial (lower priority)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.