View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017050 | Scribus | User Interface | public | 2023-11-14 13:33 | 2023-12-24 10:00 |
Reporter | sfhwdt9e | Assigned To | ale | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | EndeavourOS | OS | Linux | OS Version | 6.5.9-arch2-1 |
Product Version | 1.5.8 | ||||
Fixed in Version | 1.6.0.svn | ||||
Summary | 0017050: Snapping doesn't work when scaling frames | ||||
Description | Snapping (ctrl u) works fine when positioning frames, but doesn't work when scaling a frame. It would be useful when dragging it by a corner to be able to snap to adjacent frames. | ||||
Steps To Reproduce | 1. Create two (text or image) frames. 2. Start scaling one of them towards to other (by dragging one corner with ctrl and alt pressed). 3. Drag it close to the other frame. 4. Observe snapping not working. | ||||
Additional Information | It can be quite annoying when you have lots of frames just slightly misaligned towards each other or towards page margins. You need to use align tools, but there is always the last corner that doesn't fit right (although very small). | ||||
Tags | patch | ||||
Patch | Yes | ||||
|
AMOF i've met that issue several times. It's not specific to image frames : it also happens with text frames. |
|
@JLuc that's true, sorry I can't see any button to edit this issue (change the name to include more objects) |
|
here is a patch... snap-items.diff (494 bytes)
diff --git a/scribus/canvasgesture_resize.cpp b/scribus/canvasgesture_resize.cpp index ccb572d012465485b3a26119bbe99de54942c028..02b154a8697624639fd39a1858561b4e7696a327 100644 --- a/scribus/canvasgesture_resize.cpp +++ b/scribus/canvasgesture_resize.cpp @@ -814,7 +814,7 @@ FPoint ResizeGesture::applyGuides(const FPoint& docPoint) { int pointPage; - if (!m_doc->SnapGuides) + if (!m_doc->SnapGuides && !m_doc->SnapElement) return docPoint; FPoint snappedPoint = docPoint; |
|
@ale, thanks, I applied your patch. i will not close the issue tho, as after testing, it seems the issue is still not completely fixed. |
|
Perfect, thank you very much! It seems to be working fine here (tried both image and text objects). |
|
@jghali thanks for committing. i also have the feeling that in some cases it does not work correctly, but i cannot reproduce. if it's not clear what the issue is, i would close this ticket and wait for somebody to figure out what is going wrong and create a new specific ticket. |
|
It is indeed hard to reproduce, so I am going to close this ticket for now. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-11-14 13:33 | sfhwdt9e | New Issue | |
2023-11-14 22:16 | JLuc | Note Added: 0050466 | |
2023-11-14 22:16 | JLuc | Note Edited: 0050466 | |
2023-11-14 22:18 | JLuc | Note Edited: 0050466 | |
2023-11-14 22:19 | JLuc | Assigned To | => JLuc |
2023-11-14 22:19 | JLuc | Status | new => confirmed |
2023-11-15 16:16 | sfhwdt9e | Note Added: 0050470 | |
2023-11-15 19:00 | cbradney | Severity | minor => feature |
2023-11-15 20:04 | ale | Note Added: 0050473 | |
2023-11-15 20:04 | ale | File Added: snap-items.diff | |
2023-11-15 20:06 | ale | Summary | Snapping doesn't work when scaling Image frames => [PATCH] Snapping doesn't work when scaling Image frames |
2023-11-15 20:06 | ale | Patch | No => Yes |
2023-11-15 20:06 | ale | Tag Attached: patch | |
2023-11-15 20:30 | ale | Note Edited: 0050473 | |
2023-11-15 20:35 | ale | Note Edited: 0050473 | |
2023-11-16 11:48 | JLuc | Summary | [PATCH] Snapping doesn't work when scaling Image frames => [PATCH] Snapping doesn't work when scaling frames |
2023-11-16 11:48 | JLuc | Description Updated | |
2023-11-16 11:48 | JLuc | Steps to Reproduce Updated | |
2023-11-16 11:48 | JLuc | Additional Information Updated | |
2023-11-26 17:07 | jghali | Note Added: 0050519 | |
2023-11-26 17:07 | jghali | Summary | [PATCH] Snapping doesn't work when scaling frames => Snapping doesn't work when scaling frames |
2023-11-26 17:47 | sfhwdt9e | Note Added: 0050520 | |
2023-11-26 17:47 | sfhwdt9e | File Added: image.png | |
2023-11-26 19:18 | ale | Note Added: 0050521 | |
2023-11-27 22:46 | jghali | Assigned To | JLuc => ale |
2023-11-27 22:46 | jghali | Status | confirmed => resolved |
2023-11-27 22:46 | jghali | Resolution | open => fixed |
2023-11-27 22:46 | jghali | Fixed in Version | => 1.6.0.svn |
2023-11-27 22:46 | jghali | Note Added: 0050531 | |
2023-12-24 10:00 | cbradney | Status | resolved => closed |