Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgieseki committed Jan 18, 2025
1 parent 8b9dd2a commit 30c16f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/NoPsSpecialHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ using namespace std;


bool NoPsSpecialHandler::process (const string&, istream&, SpecialActions&) {
_count++;
_ignoreCount++;
return true;
}


void NoPsSpecialHandler::dviEndPage (unsigned pageno, SpecialActions &actions) {
if (_count > 0) {
string suffix = (_count > 1 ? "s" : "");
Message::wstream(true) << _count << " PostScript special" << suffix << " ignored. The resulting SVG might look wrong.\n";
_count = 0;
if (_ignoreCount > 0) {
string suffix = (_ignoreCount > 1 ? "s" : "");
Message::wstream(true) << _ignoreCount << " PostScript special" << suffix << " ignored."
<< " The resulting SVG might look wrong.\n";
_ignoreCount = 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/NoPsSpecialHandler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class NoPsSpecialHandler : public SpecialHandler {
void dviEndPage (unsigned pageno, SpecialActions &actions) override;

private:
size_t _count=0; // number of PS specials skipped
size_t _ignoreCount=0; // number of PS specials skipped
};

#endif

0 comments on commit 30c16f6

Please sign in to comment.