Skip to content

Commit

Permalink
jx_layout_editor: fix DND crash when dragging CoreWidget's
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Apr 11, 2024
1 parent 231e8bf commit 4c140dc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/jx_layout_editor/code/HistoryMenu.cpp
Expand Up @@ -93,8 +93,8 @@ HistoryMenu::HistoryMenuX
)
{
itsMenu = jnew JXTextMenu(JString::empty, this, kHElastic, kVElastic, x,y,w,h);
itsMenu->SetMenuItems(kMenuStr);
SetWidget(itsMenu);
itsMenu->SetMenuItems(kMenuStr);
}

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion tools/jx_layout_editor/code/Menu.cpp
Expand Up @@ -99,8 +99,8 @@ Menu::MenuX
)
{
itsMenu = jnew JXTextMenu(title, this, kHElastic, kVElastic, x,y,w,h);
itsMenu->SetMenuItems(kMenuStr);
SetWidget(itsMenu);
itsMenu->SetMenuItems(kMenuStr);
}

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion tools/jx_layout_editor/code/ProgressIndicator.cpp
Expand Up @@ -63,9 +63,9 @@ ProgressIndicator::ProgressIndicatorX
)
{
itsWidget = jnew JXProgressIndicator(this, kHElastic, kVElastic, x,y,w,h);
SetWidget(itsWidget);
itsWidget->SetMaxValue(10);
itsWidget->SetValue(4);
SetWidget(itsWidget);
}

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion tools/jx_layout_editor/code/Slider.cpp
Expand Up @@ -78,10 +78,10 @@ Slider::SliderX
{
itsWidget = jnew JXSlider(this, kHElastic, kVElastic, x,y,w,h);
}
SetWidget(itsWidget);

itsWidget->SetMaxValue(10);
itsWidget->SetValue(4);
SetWidget(itsWidget);
}

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion tools/jx_layout_editor/code/StaticText.cpp
Expand Up @@ -99,8 +99,8 @@ StaticText::StaticTextX
{
itsText = jnew JXStaticText(text, itsWordWrapFlag, false, false, nullptr,
this, kHElastic, kVElastic, x,y,w,h);
itsText->SetBorderWidth(0);
SetWidget(itsText);
itsText->SetBorderWidth(0);

if (itsIsLabelFlag)
{
Expand Down
7 changes: 7 additions & 0 deletions tools/jx_layout_editor/release/doc/ChangeLog.html
Expand Up @@ -13,6 +13,13 @@ <h1>JX Layout Editor: Changes from previous versions</h1>
<p>Please submit all suggestions and bugs via <a href="https://github.com/jafl/jx_application_framework/issues">github</a>.</p>
<hr>

<h2>4.2</h2>

<ul>
<li>Fixed drag-and-drop crash when some widgets were copied.</li>
</ul>


<h2>4.1</h2>

<ul>
Expand Down

0 comments on commit 4c140dc

Please sign in to comment.