Skip to content

Commit

Permalink
Fix installer build error
Browse files Browse the repository at this point in the history
Dumb debugging code was left in. Also, add metadata to raster image.
  • Loading branch information
JohnDTill committed Nov 2, 2024
1 parent 5da147d commit 9310796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,8 @@ void MainWindow::on_actionPNG_triggered(){
if(!c.hasSelection()) c.selectAll();

QImage img = c.selection().toPng();
img.setText("Description", toQString(c.selectedText()));
img.setText("Title", "ForscapeImage");
QGuiApplication::clipboard()->setImage(img, QClipboard::Clipboard);
}

Expand Down
1 change: 0 additions & 1 deletion src/typeset_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ void Model::writeString(std::string& out) const noexcept {
lines[i]->writeString(out);
}

if(!isValidSerial(out)) std::cout << out << std::endl;
assert(isValidSerial(out));
}

Expand Down

0 comments on commit 9310796

Please sign in to comment.