Boise Cascade swings to a gain