if (!match)
match = objects.front();
- auto_ptr_char temp(match->getTextContent());
+ auto_arrayptr<char> temp(toUTF8(match->getTextContent()));
if (temp.get() && *temp.get()) {
auto_ptr<SimpleAttribute> attr(new SimpleAttribute(vector<string>(1, id)));
attr->getValues().push_back(temp.get());
if (request && request->startLangMatching()) {
do {
for (vector<Logo*>::const_iterator i = logos.begin(); i != logos.end(); ++i) {
- if (request->matchLang((*i)->getLang())) {
+ if (!(*i)->getLang() || request->matchLang((*i)->getLang())) {
sizediff = 0;
if (h > 0) {
dim = (*i)->getHeight();
- sizediff = abs(h - dim.second);
+ sizediff += abs(h - dim.second);
}
if (w > 0) {
dim = (*i)->getWidth();
sizediff = 0;
if (h > 0) {
dim = (*i)->getHeight();
- sizediff = abs(h - dim.second);
+ sizediff += abs(h - dim.second);
}
if (w > 0) {
dim = (*i)->getWidth();