Skip to content

Commit

Permalink
De-duplicate logic
Browse files Browse the repository at this point in the history
`drawpath` is always initialized and thus its size can always reported.
  • Loading branch information
tobiolo committed Jan 23, 2024
1 parent c14f5ef commit 38ea530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ struct Document {
fos.Write(&vers, 1);
sos.Write8(selected.xs);
sos.Write8(selected.ys);
sos.Write8(!drawpath.size() || !ocs ? 0 : drawpath.size()); // zoom level
sos.Write8(ocs ? drawpath.size() : 0); // zoom level
RefreshImageRefCount(true);
int realindex = 0;
loopv(i, sys->imagelist) {
Expand Down

0 comments on commit 38ea530

Please sign in to comment.