980:4a95c6b06ebe | 981:5d5d84ab2c48 |
---|---|
111 } | 111 } |
112 | 112 |
113 void FileToolset::insertFrom() | 113 void FileToolset::insertFrom() |
114 { | 114 { |
115 QString fname = QFileDialog::getOpenFileName(); | 115 QString fname = QFileDialog::getOpenFileName(); |
116 int idx = m_window->getInsertionPoint(); | 116 int idx = m_window->suggestInsertPoint(); |
117 | 117 |
118 if (not fname.length()) | 118 if (not fname.length()) |
119 return; | 119 return; |
120 | 120 |
121 QFile f (fname); | 121 QFile f (fname); |
132 | 132 |
133 for (LDObject* obj : objs) | 133 for (LDObject* obj : objs) |
134 { | 134 { |
135 currentDocument()->insertObj (idx, obj); | 135 currentDocument()->insertObj (idx, obj); |
136 obj->select(); | 136 obj->select(); |
137 m_window->R()->compileObject (obj); | 137 m_window->renderer()->compileObject (obj); |
138 | 138 |
139 idx++; | 139 idx++; |
140 } | 140 } |
141 | 141 |
142 m_window->refresh(); | 142 m_window->refresh(); |