src/primitives.cpp

changeset 1428
ece049033adc
parent 1411
b48f3fd2664b
equal deleted inserted replaced
1427:b7ba2af33c13 1428:ece049033adc
620 if (spec.divisions == HighResolution) 620 if (spec.divisions == HighResolution)
621 description.insert (0, "Hi-Res "); 621 description.insert (0, "Hi-Res ");
622 else if (spec.divisions == LowResolution) 622 else if (spec.divisions == LowResolution)
623 description.insert (0, "Lo-Res "); 623 description.insert (0, "Lo-Res ");
624 624
625 LDDocument* document = m_window->newDocument(); 625 LDDocument* document = m_documents->createNew(false);
626 document->setDefaultName(fileName); 626 document->setDefaultName(fileName);
627 627
628 if (not config::defaultName().isEmpty()) 628 if (not config::defaultName().isEmpty())
629 { 629 {
630 document->header.license = LDHeader::defaultLicense(); 630 document->header.license = LDHeader::defaultLicense();

mercurial