src/toolsets/filetoolset.cpp

changeset 1065
c8ecddbd99e9
parent 1064
4c7a353cf583
child 1072
9ce9496427f2
equal deleted inserted replaced
1064:4c7a353cf583 1065:c8ecddbd99e9
156 { 156 {
157 for (LDObject* obj : selectedObjects()) 157 for (LDObject* obj : selectedObjects())
158 { 158 {
159 QString contents = obj->asText(); 159 QString contents = obj->asText();
160 QByteArray data = contents.toUtf8(); 160 QByteArray data = contents.toUtf8();
161 file.write(data, length(data)); 161 file.write(data, countof(data));
162 file.write("\r\n", 2); 162 file.write("\r\n", 2);
163 } 163 }
164 } 164 }
165 else 165 else
166 { 166 {

mercurial