Skip to content

Commit

Permalink
[xlsb] add PtgAreaErr
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jan 9, 2025
1 parent 73879af commit c9512b3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/xlsb_funs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,26 @@ std::string rgce(std::string fml_out, std::istream& sas, bool swapit, bool debug
break;
}

case PtgAreaErr:
case PtgAreaErr2:
case PtgAreaErr3:
{
if (debug) Rcpp::Rcout << "PtgAreaErr" <<std::endl;

uint32_t unused1 = 0, unused2 = 0, unused3 = 0;
unused1 = readbin(unused1, sas, swapit);
unused2 = readbin(unused2, sas, swapit);
unused3 = readbin(unused3, sas, swapit);

// could not reproduce this locally
fml_out += "#REF!";
fml_out += "\n";

if (debug) Rcpp::Rcout << sas.tellg() << std::endl;

break;
}

case PtgAreaErr3d:
case PtgAreaErr3d2:
case PtgAreaErr3d3:
Expand Down

0 comments on commit c9512b3

Please sign in to comment.