Skip to content

Commit

Permalink
Merge pull request rism-digital#3957 from rism-digital/develop-reset-…
Browse files Browse the repository at this point in the history
…doc-id

Reset Doc Id when resetting the Doc
  • Loading branch information
ahankinson authored Feb 18, 2025
2 parents 6c322d0 + 7348c34 commit 904518e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Doc::~Doc()
void Doc::Reset()
{
Object::Reset();
this->ResetID();

this->ClearSelectionPages();

Expand Down
2 changes: 1 addition & 1 deletion src/svgdevicecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ SvgDeviceContext::SvgDeviceContext(const std::string &docId) : DeviceContext(SVG

m_outdata.clear();

m_glyphPostfixId = Object::GenerateHashID();
m_glyphPostfixId = m_docId;
}

SvgDeviceContext::~SvgDeviceContext() {}
Expand Down

0 comments on commit 904518e

Please sign in to comment.