@@ -685,12 +685,11 @@ class CalDisplay : public WContainerWidget
685685 m_downloadCALp = new WAnchor ( WLink (m_tool->calpResources ()), btndiv );
686686 m_downloadCALp->setTarget ( AnchorTarget::TargetNewWindow );
687687 m_downloadCALp->setStyleClass ( " LinkBtn DownloadLink" );
688- m_downloadCALp->setText ( " CALp" );
689688#else
690- m_downloadCALp = new WPushButton ( " CALp " , btndiv );
689+ m_downloadCALp = new WPushButton ( btndiv );
691690 m_downloadCALp->setIcon ( " InterSpec_resources/images/download_small.svg" );
692- m_downloadCALp->setLinkTarget ( Wt::TargetNewWindow );
693691 m_downloadCALp->setLink ( WLink ( m_tool->calpResources () ) );
692+ m_downloadCALp->setLinkTarget ( Wt::TargetNewWindow );
694693 m_downloadCALp->setStyleClass ( " LinkBtn DownloadBtn CALp" );
695694
696695#if ( ANDROID )
@@ -701,6 +700,8 @@ class CalDisplay : public WContainerWidget
701700#endif // ANDROID
702701
703702#endif // #if( BUILD_AS_OSX_APP || IOS ) / #else
703+
704+ m_downloadCALp->setText ( " CALp" );
704705
705706 m_uploadCALp = new WPushButton ( btndiv );
706707 m_uploadCALp->setIcon ( " InterSpec_resources/images/upload_small.svg" );
@@ -1307,13 +1308,12 @@ void EnergyCalTool::initWidgets( EnergyCalTool::LayoutType layoutType )
13071308 m_downloadCALp = new WAnchor ( WLink (m_calpResource), btndiv );
13081309 m_downloadCALp->setTarget ( AnchorTarget::TargetNewWindow );
13091310 m_downloadCALp->setStyleClass ( " LinkBtn DownloadLink CALp" );
1310- m_downloadCALp->setText ( " CALp" );
13111311#else
1312- m_downloadCALp = new WPushButton ( " CALp " , btndiv );
1312+ m_downloadCALp = new WPushButton ( btndiv );
13131313 m_downloadCALp->setIcon ( " InterSpec_resources/images/download_small.svg" );
1314+ m_downloadCALp->setLink ( WLink ( m_calpResource ) );
13141315 m_downloadCALp->setLinkTarget ( Wt::TargetNewWindow );
13151316 m_downloadCALp->setStyleClass ( " LinkBtn DownloadBtn CALp" );
1316- m_downloadCALp->setLink ( WLink (m_calpResource) );
13171317
13181318#if ( ANDROID )
13191319 // Using hacked saving to temporary file in Android, instead of via network download of file.
@@ -1323,6 +1323,7 @@ void EnergyCalTool::initWidgets( EnergyCalTool::LayoutType layoutType )
13231323#endif // ANDROID
13241324
13251325#endif
1326+ m_downloadCALp->setText ( " CALp" );
13261327
13271328 m_downloadCALp->clicked ().connect ( std::bind ([this ](){
13281329 m_interspec->logMessage ( " You can apply this CALp file later to a different spectrum by"
0 commit comments