measure_tool_switch.patch

A patch for QGIS trunk - marisn -, 2011-04-28 09:43 AM

Download (649 Bytes)

View differences:

src/app/qgsmeasuretool.cpp (working copy)
63 63
{
64 64
  mDialog->restorePosition();
65 65
  QgsMapTool::activate();
66
  mRightMouseClicked = false;
67

  
66
  
67
  // Reset tool if user had rightclicked before tool switching
68
  if ( mRightMouseClicked )
69
    mDialog->restart();
68 70
  // ensure that we have correct settings
69
  updateSettings();
71
  else
72
    updateSettings();
70 73

  
71 74
  // If we suspect that they have data that is projected, yet the
72 75
  // map CRS is set to a geographic one, warn them.