src/toolsets/algorithmtoolset.cpp

changeset 1064
4c7a353cf583
parent 1063
1f15c52c11f6
child 1065
c8ecddbd99e9
equal deleted inserted replaced
1063:1f15c52c11f6 1064:4c7a353cf583
511 do 511 do
512 { 512 {
513 digits.setNum (subidx++); 513 digits.setNum (subidx++);
514 514
515 // pad it with a zero 515 // pad it with a zero
516 if (digits.length() == 1) 516 if (length(digits) == 1)
517 digits.prepend ("0"); 517 digits.prepend ("0");
518 518
519 fullsubname = subdirname + "/" + Basename (parentpath) + "s" + digits + ".dat"; 519 fullsubname = subdirname + "/" + Basename (parentpath) + "s" + digits + ".dat";
520 } while (m_documents->findDocumentByName ("s\\" + Basename (fullsubname)) or QFile (fullsubname).exists()); 520 } while (m_documents->findDocumentByName ("s\\" + Basename (fullsubname)) or QFile (fullsubname).exists());
521 } 521 }

mercurial