The document's own pixel budget, marching ants at screen resolution (12.11a)
This commit is contained in:
1 parent
ffba1753c6
commit
8a9c56ee1f
75 files changed
+759
-189
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "Document/EditorSession+Model.h"
|
||||
#include "Document/DocumentLimits.h"
|
||||
#include "IO/ProjectStore.h"
|
||||
#include <algorithm>
|
||||
|
||||
@@ -85,7 +86,7 @@ std::optional<int> CanvasDocument::validDimension(const QString &value)
|
||||
while (last > first && isWhitespace(value[last - 1]))
|
||||
--last;
|
||||
const std::optional<int> number = wholeNumber(QStringView(value).mid(first, last - first));
|
||||
if (!number || *number < 1 || *number > 30'000)
|
||||
if (!number || *number < 1 || *number > DocumentLimits::maxSide)
|
||||
return std::nullopt;
|
||||
return number;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user