Fix Bug #1529214 (pcbnew VRML export dialog settings have no effect)

This commit is contained in:
Element Green 2015-12-27 18:33:15 +01:00 committed by jean-pierre charras
parent 9d994663f1
commit 0417538ab3
1 changed files with 3 additions and 3 deletions

View File

@ -206,6 +206,9 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
dlg.FilePicker()->SetPath( fn.GetFullPath() ); dlg.FilePicker()->SetPath( fn.GetFullPath() );
dlg.SetSubdir( subDirFor3Dshapes ); dlg.SetSubdir( subDirFor3Dshapes );
if( dlg.ShowModal() != wxID_OK )
return;
double aXRef = dlg.GetXRef(); double aXRef = dlg.GetXRef();
double aYRef = dlg.GetYRef(); double aYRef = dlg.GetYRef();
@ -221,9 +224,6 @@ void PCB_EDIT_FRAME::OnExportVRML( wxCommandEvent& event )
bool useRelativePaths = dlg.GetUseRelativePathsOption(); bool useRelativePaths = dlg.GetUseRelativePathsOption();
bool usePlainPCB = dlg.GetUsePlainPCBOption(); bool usePlainPCB = dlg.GetUsePlainPCBOption();
if( dlg.ShowModal() != wxID_OK )
return;
last_vrmlName = dlg.FilePicker()->GetPath(); last_vrmlName = dlg.FilePicker()->GetPath();
wxFileName modelPath = last_vrmlName; wxFileName modelPath = last_vrmlName;
wxBusyCursor dummy; wxBusyCursor dummy;