maoschanz / maoschanz/drawing

Can select data out of canvas bounds with the rect selection tool

Open
#697 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
869
Forks
106
PR merge metrics
No merged PRs in 30d

Description

## Description

The rectangular selection tool allows you to select data that is outside the image you're editing.

### Steps to reproduce the bug

1. Open any image with this software
2. With the select tool, start selecting from anywhere inside the image
3. End selected area outside the image (go as far as possible to get "better" results)

To see the data you selected that is not from the image, drag the selection around...

*I recorded a video, but GitHub won't let me upload it.*

## System

- Device: HP 15-gw0038nf laptop
- OS: Ubuntu 26.04 LTS (Resolute Raccoon)
- Desktop environment: Wayland (Gnome)
- Package format: native package from the distribution repository
- App version: 1.0.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the rectangular selection tool on an image, extending the selection beyond each image edge and dragging it afterward. Trace the selection tool's bounds handling and verify that selected data never extends outside the image; repeat the reproduction steps to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.