fix: prefer spreadsheet data over image ()

pull/4552/head
David Luzar committed by GitHub
parent 74861b1398
commit d5a6014076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1306,7 +1306,8 @@ class App extends React.Component<AppProps, AppState> {
} }
} }
if (isSupportedImageFile(file)) { // prefer spreadsheet data over image file (MS Office/Libre Office)
if (isSupportedImageFile(file) && !data.spreadsheet) {
const { x: sceneX, y: sceneY } = viewportCoordsToSceneCoords( const { x: sceneX, y: sceneY } = viewportCoordsToSceneCoords(
{ clientX: cursorX, clientY: cursorY }, { clientX: cursorX, clientY: cursorY },
this.state, this.state,

Loading…
Cancel
Save