]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed typo causing multiple file selections to always return the same single name.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 17 Feb 2004 18:11:16 +0000 (18:11 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 17 Feb 2004 18:11:16 +0000 (18:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/filedlg.cpp
src/mac/filedlg.cpp

index 08bce85f1f55e5dd5f04f2848969db0dfc632b74..59807f398d9aba4bd8e2b450ee9bfee982ddf04d 100644 (file)
@@ -436,7 +436,7 @@ int wxFileDialog::ShowModal()
         ::AECountItems(&navReply.selection , &count);
         for (long i = 1; i <= count; ++i)
         {
-            err = ::AEGetNthPtr(&(navReply.selection), 1, typeFSRef, &theKeyword, &actualType,
+            err = ::AEGetNthPtr(&(navReply.selection), i, typeFSRef, &theKeyword, &actualType,
                                 &theFSRef, sizeof(theFSRef), &actualSize);
             if (err != noErr)
                 break;
index 08bce85f1f55e5dd5f04f2848969db0dfc632b74..59807f398d9aba4bd8e2b450ee9bfee982ddf04d 100644 (file)
@@ -436,7 +436,7 @@ int wxFileDialog::ShowModal()
         ::AECountItems(&navReply.selection , &count);
         for (long i = 1; i <= count; ++i)
         {
-            err = ::AEGetNthPtr(&(navReply.selection), 1, typeFSRef, &theKeyword, &actualType,
+            err = ::AEGetNthPtr(&(navReply.selection), i, typeFSRef, &theKeyword, &actualType,
                                 &theFSRef, sizeof(theFSRef), &actualSize);
             if (err != noErr)
                 break;