Skip to content

Commit

Permalink
Clear atlas features in print series mode
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 20, 2024
1 parent 9d717b1 commit b22442c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Print.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class Print extends React.Component {
</td>
</tr>
) : null}
{this.state.layout.atlasCoverageLayer ? (
{this.state.layout.atlasCoverageLayer && !this.state.printSeriesEnabled ? (
<tr>
<td>{LocaleUtils.tr("print.atlasfeature")}</td>
<td>
Expand Down Expand Up @@ -399,7 +399,7 @@ class Print extends React.Component {
<tr>
<td>{LocaleUtils.tr("print.series")}</td>
<td>
<ToggleSwitch active={this.state.printSeriesEnabled} onChange={(newstate) => this.setState({printSeriesEnabled: newstate})} />
<ToggleSwitch active={this.state.printSeriesEnabled} onChange={(newstate) => this.setState({printSeriesEnabled: newstate, atlasFeatures: []})} />
</td>
</tr>
) : null}
Expand Down

0 comments on commit b22442c

Please sign in to comment.