src/gui/painting/qprintengine_win.cpp
changeset 30 5dc02b23752f
parent 23 89e065397ea6
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   366         QPaintEngine::drawTextItem(p, textItem);
   366         QPaintEngine::drawTextItem(p, textItem);
   367         return ;
   367         return ;
   368     }
   368     }
   369 
   369 
   370     // We only want to convert the glyphs to text if the entire string is compatible with ASCII
   370     // We only want to convert the glyphs to text if the entire string is compatible with ASCII
   371     bool convertToText = true;
   371     // and if we actually have access to the chars.
       
   372     bool convertToText = ti.chars != 0;
   372     for (int i=0;  i < ti.num_chars; ++i) {
   373     for (int i=0;  i < ti.num_chars; ++i) {
   373         if (ti.chars[i].unicode() >= 0x80) {
   374         if (ti.chars[i].unicode() >= 0x80) {
   374             convertToText = false;
   375             convertToText = false;
   375             break;
   376             break;
   376         }
   377         }
  1239     case PPK_FullPage:
  1240     case PPK_FullPage:
  1240         d->fullPage = value.toBool();
  1241         d->fullPage = value.toBool();
  1241         d->updateOrigin();
  1242         d->updateOrigin();
  1242         break;
  1243         break;
  1243 
  1244 
       
  1245     case PPK_CopyCount: // fallthrough
  1244     case PPK_NumberOfCopies:
  1246     case PPK_NumberOfCopies:
  1245         if (!d->devMode)
  1247         if (!d->devMode)
  1246             break;
  1248             break;
  1247         d->num_copies = value.toInt();
  1249         d->num_copies = value.toInt();
  1248         d->devMode->dmCopies = d->num_copies;
  1250         d->devMode->dmCopies = d->num_copies;
  1405 
  1407 
  1406     case PPK_FullPage:
  1408     case PPK_FullPage:
  1407         value = d->fullPage;
  1409         value = d->fullPage;
  1408         break;
  1410         break;
  1409 
  1411 
       
  1412     case PPK_CopyCount:
       
  1413         value = d->num_copies;
       
  1414         break;
       
  1415 
       
  1416     case PPK_SupportsMultipleCopies:
       
  1417         value = true;
       
  1418         break;
       
  1419 
  1410     case PPK_NumberOfCopies:
  1420     case PPK_NumberOfCopies:
  1411         value = 1;
  1421         value = 1;
  1412         break;
  1422         break;
  1413 
  1423 
  1414     case PPK_Orientation:
  1424     case PPK_Orientation: