~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/main/tools/showhistorytool.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                
37
37
bool GNC::ShowHistoryTool::ExecuteAction()
38
38
{       
39
 
        if (ViewContract->GetView()->GetWindow() != NULL) {
40
 
                //set position relative to view window...
41
 
                wxPoint position = ViewContract->GetView()->GetWindow()->GetPosition();
42
 
                wxPoint screeenPosition = ViewContract->GetView()->GetWindow()->ClientToScreen(position);
43
 
                screeenPosition.x += 20;
44
 
                screeenPosition.y += 20;
45
 
                GNC::GUI::HistoryPanel3::Instance()->SetPosition(screeenPosition);
 
39
        if (GNC::GUI::HistoryPanel3::Instance()->IsIconized()) {
 
40
                GNC::GUI::HistoryPanel3::Instance()->Restore();
46
41
        }
47
42
        if (!GNC::GUI::HistoryPanel3::Instance()->IsShown())
48
43
        {