show an error when something goes wrong at svg parsing

This commit is contained in:
tibbi
2017-04-09 10:53:46 +02:00
parent 9ff5876a19
commit 8147db004b
3 changed files with 24 additions and 17 deletions

View File

@@ -110,7 +110,7 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener {
private fun openFile() {
FilePickerDialog(this, curPath) {
if (it.endsWith(".svg")) {
Svg.loadSvg(File(it), my_canvas)
Svg.loadSvg(this, File(it), my_canvas)
} else if (File(it).isImageSlow()) {
} else {