Skip to content

Commit b22442c

Browse files
committed
Clear atlas features in print series mode
1 parent 9d717b1 commit b22442c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/Print.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class Print extends React.Component {
330330
</td>
331331
</tr>
332332
) : null}
333-
{this.state.layout.atlasCoverageLayer ? (
333+
{this.state.layout.atlasCoverageLayer && !this.state.printSeriesEnabled ? (
334334
<tr>
335335
<td>{LocaleUtils.tr("print.atlasfeature")}</td>
336336
<td>
@@ -399,7 +399,7 @@ class Print extends React.Component {
399399
<tr>
400400
<td>{LocaleUtils.tr("print.series")}</td>
401401
<td>
402-
<ToggleSwitch active={this.state.printSeriesEnabled} onChange={(newstate) => this.setState({printSeriesEnabled: newstate})} />
402+
<ToggleSwitch active={this.state.printSeriesEnabled} onChange={(newstate) => this.setState({printSeriesEnabled: newstate, atlasFeatures: []})} />
403403
</td>
404404
</tr>
405405
) : null}

0 commit comments

Comments
 (0)