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
Changing page size in first page to wide screen will reset after app relaunch #710
Comments
Thanks for reporting. Confirmed and reproducible. |
Changing the page size is not considered to be a modification of the page and does therefore not trigger saving the page before leaving. As soon as you make some modification to the page after changing the size, the scene is persisted and the new page size is correctly saved. So the issue only appears if you modify the page size only and nothing else. My proposal is to modify the following piece of code: OpenBoard/src/board/UBBoardController.cpp Lines 2057 to 2073 in 2f4f94a
Add after line 2061: mActiveScene->setModified(true); Edit: a better way would be to move this to void UBGraphicsScene::setNominalSize(const QSize& pSize)
{
if (nominalSize() != pSize)
{
mNominalSize = pSize;
setModified(true); // modifying the size modifies the scene
// force redrawing the background
foreach(QGraphicsView* view, views())
{
view->resetCachedContent();
}
if(mDocument)
mDocument->setDefaultDocumentSize(pSize);
}
} This makes setting the flag more local. Additionally I added a |
Steps to reproduce:
Can also be verified by exporting the document in BRD format and opening page000.svg and it will have
ub:nominal-size="1280x960"
where-as it should actually beub:nominal-size="1696x960"
Running OpenBoard 1.6.4 on Manjaro Linux, installed from FlatHub. Would be happy to share a sample document for reproducing if required.
The text was updated successfully, but these errors were encountered: