Skip to content

Fix photo sketching bugs#4052

Merged
tomasMizera merged 4 commits intodev/2025.6.0from
fix-photo-sketching
Aug 27, 2025
Merged

Fix photo sketching bugs#4052
tomasMizera merged 4 commits intodev/2025.6.0from
fix-photo-sketching

Conversation

@Withalion
Copy link
Copy Markdown
Contributor

@Withalion Withalion commented Aug 26, 2025

  • fixes bottom padding on photo sketching page
  • fixes crash when photo is sketched over multiple times
  • fixes another multi-photo/long form bug:

If I have a record where more then one photo can be added, the photo sketches are available only for the last edited photo:
1. open project tester-ws-1/test_photo_naming
2. record new point and take photos for all photo fields
3. add photo sketches to first 3 photos and to last photo - the photo orientation temporarily changes
4. save
5. reopen record -> only the last picture has photo sketches available. The photo orientation for last picture changed

@Withalion Withalion requested a review from tomasMizera August 26, 2025 14:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 26, 2025

Pull Request Test Coverage Report for Build 17262432346

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 59.838%

Files with Coverage Reduction New Missed Lines %
input/app/imageutils.cpp 4 59.04%
Totals Coverage Status
Change from base Build 17241333524: 0.02%
Covered Lines: 8476
Relevant Lines: 14165

💛 - Coveralls

@Withalion Withalion requested a review from tomasMizera August 27, 2025 08:14
{
QDir::temp().remove( photoFileName );
mPhotoSource = QUrl( QDir::temp().absolutePath() + "/" + photoFileName ).toString();
emit tempPhotoSourceChanged( QUrl( mPhotoSource ).toString() );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we cover this case in unit tests please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, check latest commit

@tomasMizera tomasMizera merged commit 079bcd0 into dev/2025.6.0 Aug 27, 2025
8 of 9 checks passed
@tomasMizera tomasMizera deleted the fix-photo-sketching branch August 27, 2025 11:52
Withalion added a commit that referenced this pull request Sep 2, 2025
* Fix photo sketching crash on resketching

* Fix bottom padding on photo sketching page

* Fix vanishing sketches on long forms

* Add tests for image loading in PhotoSketchingController
tomasMizera added a commit that referenced this pull request Sep 3, 2025
* Update version

* Update apple CI (#4043)

* Switch workspace on invitation accepted (#3895)



---------

Co-authored-by: Withalion <bagarmatej@gmail.com>

* Photo sketching support (#3930)

* Fix out of date server dialog (#4051)

* Photo sketching improvement (#4049)

* Add test for clearOrientationMetadata ImageUtil

* Refactor TestImageUtils

* Make photo sketching opt-in

* Add photosketching tests

* Fix formatting

* Fix photo sketching bugs (#4052)

* Fix photo sketching crash on resketching

* Fix bottom padding on photo sketching page

* Fix vanishing sketches on long forms

* Add tests for image loading in PhotoSketchingController

* Change CI to build AAB on dev branches

* Fix photo sketching bugs (#4065)

---------

Co-authored-by: Vitor Vieira <155513369+VitorVieiraZ@users.noreply.github.com>
tomasMizera pushed a commit that referenced this pull request Sep 3, 2025
* Fix photo sketching crash on resketching

* Fix bottom padding on photo sketching page

* Fix vanishing sketches on long forms

* Add tests for image loading in PhotoSketchingController
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

Successfully merging this pull request may close these issues.

2 participants