1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

code cleanup (synchronization with C++ version)

This commit is contained in:
Nikolay Pultsin 2013-02-23 15:24:24 +04:00
parent e2ace6b693
commit 784b0acee0
2 changed files with 3 additions and 3 deletions

View file

@ -212,8 +212,8 @@ void FB2BookReader::startElementHandler(int tag, const char **xmlattributes) {
ref = attributeValue(xmlattributes, myBrokenHrefPredicate);
}
const char *vOffset = attributeValue(xmlattributes, "voffset");
char offset = (vOffset != 0) ? atoi(vOffset) : 0;
if ((ref != 0) && (*ref == '#')) {
char offset = vOffset != 0 ? std::atoi(vOffset) : 0;
if (ref != 0 && *ref == '#') {
++ref;
const bool isCoverImage =
myParagraphsBeforeBodyNumber ==