Skip to content

Commit a50c02b

Browse files
committed
Don't copy all items if none are selected when clicking the + button.
Use toolset v142 for Visual Studio 2019.
1 parent 1791bc4 commit a50c02b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MainWindow.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ void MainWindow::EnsureAtLeastOneDrawableObject()
10871087
void MainWindow::CreateDrawableObjectsListViewSelected()
10881088
{
10891089
auto attributeValuesListView = GetWindowFromId(hwnd_, IdcAttributeValuesList);
1090-
std::vector<uint32_t> drawableObjectIndices = GetSelectedDrawableObjectIndices(/*returnAllIfNoMatch*/true);
1090+
std::vector<uint32_t> drawableObjectIndices = GetSelectedDrawableObjectIndices(/*returnAllIfNoMatch*/false);
10911091
std::vector<uint32_t> attributeValueIndices = GetListViewMatchingIndices(attributeValuesListView, LVNI_SELECTED, /*returnAllIfNoMatch*/false);
10921092

10931093
// Create a default object or duplicate a selected one.

TextLayoutSampler.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PropertyGroup Label="Configuration">
2828
<ConfigurationType>Application</ConfigurationType>
2929
<UseDebugLibraries>true</UseDebugLibraries>
30-
<PlatformToolset>v141</PlatformToolset>
30+
<PlatformToolset>v142</PlatformToolset>
3131
<CharacterSet>Unicode</CharacterSet>
3232
</PropertyGroup>
3333
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />

0 commit comments

Comments
 (0)